]> granicus.if.org Git - file/commitdiff
Add the lineno in the strength printing.
authorChristos Zoulas <christos@zoulas.com>
Fri, 6 Feb 2015 17:08:58 +0000 (17:08 +0000)
committerChristos Zoulas <christos@zoulas.com>
Fri, 6 Feb 2015 17:08:58 +0000 (17:08 +0000)
src/apprentice.c

index bb6f51cd784ef0e9e6361bb0ad3477e0f2ace9ef..5507afccfc328933707a72c8a63d0ffc4e4497cc 100644 (file)
@@ -32,7 +32,7 @@
 #include "file.h"
 
 #ifndef        lint
-FILE_RCSID("@(#)$File: apprentice.c,v 1.229 2015/01/01 17:07:34 christos Exp $")
+FILE_RCSID("@(#)$File: apprentice.c,v 1.230 2015/01/02 21:29:39 christos Exp $")
 #endif /* lint */
 
 #include "magic.h"
@@ -964,8 +964,9 @@ apprentice_list(struct mlist *mlist, int mode)
                               *ml->magic[magindex].mimetype == '\0')
                                magindex++;
 
-                       printf("Strength = %3" SIZE_T_FORMAT "u : %s [%s]\n",
+                       printf("Strength = %3" SIZE_T_FORMAT "u@%u: %s [%s]\n",
                            apprentice_magic_strength(m),
+                           ml->magic[magindex].lineno,
                            ml->magic[magindex].desc,
                            ml->magic[magindex].mimetype);
                }