]> 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 595bea00d1b0fe79ce56d0cc9aab08ccda0468b0..5b076b3ba75cedcc219f196a4178076a9b5c37f4 100644 (file)
@@ -32,7 +32,7 @@
 #include "file.h"
 
 #ifndef        lint
-FILE_RCSID("@(#)$File: apprentice.c,v 1.230 2015/01/02 21:29:39 christos Exp $")
+FILE_RCSID("@(#)$File: apprentice.c,v 1.231 2015/02/06 17:08:58 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);
                }