hdparm and incorrect printf format

Yann E. MORIN yann.morin.1998 at anciens.enib.fr
Fri May 19 19:44:07 UTC 2006


Hello all!

Still compiling with -Wall and -Werror...

hdparm has a uint64_t passed to printf with a %llu format (which is ok, because
it's the same size), but without first being casted(?) to unsigned long long int.
Which is kinda funny because it's done OK on a few lines above...

Here's a patch against trunk for this.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |   ^                |
| --==< °_° >==-- °---.----------------:  X  AGAINST      |  /e\  There is no  |
| web: ymorin.free.fr | SETI at home 3808 | / \ HTML MAIL    |  """  conspiracy.  |
°---------------------°----------------°------------------°--------------------°
-------------- next part --------------
A non-text attachment was scrubbed...
Name: busybox-hdparm-wrong-printf-format.patch
Type: text/x-diff
Size: 498 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20060519/74a373d3/attachment.bin 


More information about the busybox mailing list