aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/index.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/index.c b/src/index.c
index f0845c3a..df2c5ee1 100644
--- a/src/index.c
+++ b/src/index.c
@@ -42,6 +42,13 @@ IndexingPrivate *indexing_private(IndexingMethod indm)
}
+static const char *maybes(int n)
+{
+ if ( n == 1 ) return "";
+ return "s";
+}
+
+
IndexingPrivate **prepare_indexing(IndexingMethod *indm, UnitCell *cell,
const char *filename, struct detector *det,
double nominal_photon_energy)
@@ -51,7 +58,7 @@ IndexingPrivate **prepare_indexing(IndexingMethod *indm, UnitCell *cell,
IndexingPrivate **iprivs;
while ( indm[nm] != INDEXING_NONE ) nm++;
- STATUS("Preparing %i indexing methods.\n", nm);
+ STATUS("Preparing %i indexing method%s.\n", nm, maybes(nm));
iprivs = malloc((nm+1) * sizeof(IndexingPrivate *));
for ( n=0; n<nm; n++ ) {