Bug 149864 - 5 * format string requires additional arguments
Summary: 5 * format string requires additional arguments
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: lirc
Version: 3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Ville Skyttä
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-02-28 14:46 UTC by David Binderman
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-02-28 18:46:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description David Binderman 2005-02-28 14:46:37 UTC
Description of problem:

I just tried to compile package lirc-0.7.0-1 from 
Redhat Fedora Extras development tree.

The compiler said

1.

hw_uirt2_raw.c(152): warning #267: the format string requires
additional arguments

The source code is

        LOGPRINTF(1, "uirt2_raw_decode: %d");

One %d specifier, no trailing parameter.

2.

hw_uirt2_raw.c(330): warning #267: the format string requires
additional arguments

The source code is

                logprintf(LOG_ERR,
                          "uirt2_raw: to long RAW transmission %d > 48");

One %d specifier, no trailing parameter.

3.

serial.c(157): warning #267: the format string requires additional
arguments

The source code is

                logprintf(LOG_ERR,"%s: invalid filename \"%s%s\"",
                          filename,s);

Three %s specifiers, two trailing parameters.

4.

serial.c(226): warning #267: the format string requires additional
arguments

                logprintf(LOG_ERR,"%s: could not write pid to lock file");

More of the same.

5.

serial.c(283): warning #267: the format string requires additional
arguments

	logprintf(LOG_ERR,"%s: could not delete "
			"file \"%s\"",filename);

More of the same.



Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Ville Skyttä 2005-02-28 18:46:10 UTC
Once again, please consider reporting compiler warnings upstream
instead of here.  I did it for this case:
http://sourceforge.net/tracker/index.php?func=detail&aid=1153701&group_id=5444&atid=305444

Comment 2 Ville Skyttä 2005-04-17 17:12:49 UTC
Should be fixed in lirc-0.7.1-1 and later.


Note You need to log in before you can comment on or make changes to this bug.