[BusyBox 0000743]: [PORTABILITY] printf format strings, %Ld

bugs at busybox.net bugs at busybox.net
Tue Apr 11 18:27:36 UTC 2006


A NOTE has been added to this issue. 
====================================================================== 
http://busybox.net/bugs/view.php?id=743 
====================================================================== 
Reported By:                rfelker
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   743
Category:                   Standards Compliance
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             02-19-2006 13:46 PST
Last Modified:              04-11-2006 11:27 PDT
====================================================================== 
Summary:                    [PORTABILITY] printf format strings, %Ld
Description: 
The following files use %L[diouxX] for long long int, instead of
%ll[diouxX]. The former is nonstandard (left unspecified by SuSv3); %L is
intended for use only with floating point values, i.e. %Lf for long
double.

networking/interface.c
coreutils/stat.c
libbb/human_readable.c
e2fsprogs/blkid/blkid_getsize.c
e2fsprogs/blkid/devno.c

Changing all occurances of %L to %ll resolves the problem.

====================================================================== 

---------------------------------------------------------------------- 
 bernhardf - 04-11-06 11:27  
---------------------------------------------------------------------- 
I changed that, but now i think that it would have been better to use
%j[dux] for the uintmax_t, no? 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
02-19-06 13:46  rfelker        New Issue                                    
02-19-06 13:46  rfelker        Status                   new => assigned     
02-19-06 13:46  rfelker        Assigned To               => BusyBox         
04-11-06 11:27  bernhardf      Note Added: 0001264                          
======================================================================




More information about the busybox-cvs mailing list