rtl8139: use variadic macro for debug statements
commit7cdeb319e46b8aeef866e17119093e1646e77b02
authorBenjamin Poirier <benjamin.poirier@gmail.com>
Wed, 20 Apr 2011 23:39:01 +0000 (20 19:39 -0400)
committerAurelien Jarno <aurelien@aurel32.net>
Mon, 25 Apr 2011 20:17:52 +0000 (25 22:17 +0200)
tree92896ead49c3839bd96c46c10268aedf9d664d6d
parentafcd9c0dcd1d6ab14a72db6abde76142c6a0ac12
rtl8139: use variadic macro for debug statements

Removes double (( )) to make DEBUG_PRINT compatible with real function calls.
Change the name to DPRINTF to be consistent with other DPRINTF macros
throughout qemu.
Include the "RTL8139: " prefix in the macro. This changes some debug output
slightly since the prefix wasn't present on all lines.

Part of the change was done using the "coccinelle" tool with the following
small semantic match:
    @@ expression E; @@

    - DEBUG_PRINT((E))
    + DPRINTF(E)

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