Bug 149863 - format string requires additional arguments
Summary: format string requires additional arguments
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libsndfile
Version: 3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Dams
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-02-28 14:44 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-04-05 20:07:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
patch [candidate] (559 bytes, patch)
2005-02-28 21:33 UTC, Michael Schwendt
no flags Details | Diff

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

I just tried to compile package libsndfile-1.0.4-2 from 
Redhat Fedora Extras development tree.

The compiler said

svx.c(262): warning #267: the format string requires additional arguments

The source code is

	psf_log_printf (psf, "  Channels : %d => %d\n", channels) ;

Two %d specifiers, only one trailing parameter. I'm not sure what the 
fix is for this.



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


How reproducible:


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


Expected results:


Additional info:

Comment 1 Michael Schwendt 2005-02-28 21:33:45 UTC
Created attachment 111499 [details]
patch [candidate]

Reading the code, I've sent this upstream.

Comment 2 Michael Schwendt 2005-03-01 15:13:11 UTC
Upstream acknowledged fix is to just print

  psf_log_printf (psf, "  Channels : %d\n", channels) ;

as the code can only handle mono files.

As an update for libsndfile was already in the fedora.us queue, I
think we somehow get that update done and this fix included, too.


Comment 3 Michael Schwendt 2005-04-05 20:07:16 UTC
fixed in libsndfile-1.0.11-1



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