From: Christos Zoulas Date: Fri, 6 Feb 2015 17:08:58 +0000 (+0000) Subject: Add the lineno in the strength printing. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a76210c8b3ca34b618caaf26a4b4d9825fddd87;p=file Add the lineno in the strength printing. --- diff --git a/src/apprentice.c b/src/apprentice.c index 595bea00..5b076b3b 100644 --- a/src/apprentice.c +++ b/src/apprentice.c @@ -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); }