]> Git Repo - qemu.git/commit
rtl8139: use variadic macro for debug statements
authorBenjamin Poirier <[email protected]>
Wed, 20 Apr 2011 23:39:01 +0000 (19:39 -0400)
committerAurelien Jarno <[email protected]>
Mon, 25 Apr 2011 20:17:52 +0000 (22:17 +0200)
commit7cdeb319e46b8aeef866e17119093e1646e77b02
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 <[email protected]>
Cc: Igor V. Kovalenko <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Signed-off-by: Aurelien Jarno <[email protected]>
hw/rtl8139.c
This page took 0.0275 seconds and 4 git commands to generate.