changeset 2434:0d86e7ff49e1

Print binary name and input file name when outputting -o options.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 23 Feb 2020 06:13:24 +0200
parents 2fcd8d712b1e
children 8d8197b3d052
files tools/fanalyze.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tools/fanalyze.c	Wed Feb 19 18:25:50 2020 +0200
+++ b/tools/fanalyze.c	Sun Feb 23 06:13:24 2020 +0200
@@ -730,7 +730,10 @@
                 BOOL sep = FALSE;
 
                 if (optOffsetMode)
-                    printf("-o ");
+                {
+                    printf("%s %s -o ",
+                        argv[0], file->filename);
+                }
 
                 for (size_t offs = 0; offs + (def->bsize * node->nvalues) < file->size; offs++)
                 {