Browse code

Better warning messages

git-svn: trunk@1795

Nigel Horne authored on 2006/01/03 02:26:16
Showing 1 changed files
... ...
@@ -15,7 +15,7 @@
15 15
  *  along with this program; if not, write to the Free Software
16 16
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 17
  */
18
-static	char	const	rcsid[] = "$Id: pdf.c,v 1.37 2005/12/17 16:46:11 nigelhorne Exp $";
18
+static	char	const	rcsid[] = "$Id: pdf.c,v 1.38 2006/01/02 17:26:16 nigelhorne Exp $";
19 19
 
20 20
 #if HAVE_CONFIG_H
21 21
 #include "clamav-config.h"
... ...
@@ -186,7 +186,7 @@ cli_pdf(const char *dir, int desc)
186 186
 		if(memcmp(q, "xref", 4) == 0)
187 187
 			break;
188 188
 		if(!isdigit(*q)) {
189
-			cli_warnmsg("Object number missing\n");
189
+			cli_warnmsg("cli_pdf: Object number missing\n");
190 190
 			rc = CL_EFORMAT;
191 191
 			break;
192 192
 		}
... ...
@@ -196,7 +196,7 @@ cli_pdf(const char *dir, int desc)
196 196
 
197 197
 		q = pdf_nextobject(p, bytesleft);
198 198
 		if((q == NULL) || !isdigit(*q)) {
199
-			cli_warnmsg("Generation number missing\n");
199
+			cli_warnmsg("cli_pdf: Generation number missing\n");
200 200
 			rc = CL_EFORMAT;
201 201
 			break;
202 202
 		}