Bug 143293

Summary: check-0.9.3-2: printf problems
Product: [openSUSE] SUSE LINUX 10.0 Reporter: David Binderman <dcb314>
Component: GNOMEAssignee: Stanislav Brabec <sbrabec>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: SUSE Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description David Binderman 2006-01-15 21:38:01 UTC
I just tried to compile package check-0.9.3-2 with the Intel C compiler

It said

check_pack.c(250): warning #267: the format string requires additional arguments

The source code is

	eprintf ("%s:%d:Bad message type arg", file, line);

but

void eprintf (const char *fmt, const char *file, int line,...);

The %s and %d refer to arguments past the line argument. I note that
the type argument isn't printed. Maybe

	eprintf ("Bad message type arg %d", file, line, type);

would be a suitable fix ?