diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2009-06-24 14:42:29 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-06-29 08:52:46 -0500 |
commit | 9f349498af2194915f37f99b67f709ff27458dd2 (patch) | |
tree | 16eabc212e4cdc675b04deba1634a64978834c8d /slirp/bootp.c | |
parent | 0fe6a7f28455cd003b2668e77d5bd1e1cf15309e (diff) | |
download | qemu-9f349498af2194915f37f99b67f709ff27458dd2.tar.gz qemu-9f349498af2194915f37f99b67f709ff27458dd2.tar.bz2 qemu-9f349498af2194915f37f99b67f709ff27458dd2.zip |
slirp: Cleanup and basic reanimation of debug code
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'slirp/bootp.c')
-rw-r--r-- | slirp/bootp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slirp/bootp.c b/slirp/bootp.c index 97c2811fbf..fec52c0a84 100644 --- a/slirp/bootp.c +++ b/slirp/bootp.c @@ -42,7 +42,7 @@ static const uint8_t rfc1533_cookie[] = { RFC1533_COOKIE }; #ifdef DEBUG #define dprintf(fmt, ...) \ -if (slirp_debug & DBG_CALL) { fprintf(dfd, fmt, ## __VA_ARGS__); fflush(dfd); } +do if (slirp_debug & DBG_CALL) { fprintf(dfd, fmt, ## __VA_ARGS__); fflush(dfd); } while (0) #else #define dprintf(fmt, ...) #endif |