rtl8139: add format attribute to DPRINTF
authorBenjamin Poirier <benjamin.poirier@gmail.com>
Wed, 20 Apr 2011 23:39:02 +0000 (19:39 -0400)
committerAurelien Jarno <aurelien@aurel32.net>
Mon, 25 Apr 2011 20:17:56 +0000 (22:17 +0200)
commit9e051279d01fb931514d04331bd62bca9b34b4bf
tree8f7f11eb6e9521ecaa9fbd70e41eaf15f738503e
parent90a14ce1b7960c57e276d962d37b6acf893db568
rtl8139: add format attribute to DPRINTF

gcc can check the format string for correctness even when debugging output is
not enabled.
Have to make sure arguments are always available. They are optimized out if
unneeded.

Signed-off-by: Benjamin Poirier <benjamin.poirier@gmail.com>
Cc: Igor V. Kovalenko <igor.v.kovalenko@gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/rtl8139.c