summaryrefslogtreecommitdiff
path: root/hw/usb-net.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-06 17:47:39 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-06 17:47:39 +0000
commiteb38c52c2a6df76928c1a4760bc87d21b256e22a (patch)
tree0b391e1d33f6f47a90f7c3fa8e63e863ee9f1b8e /hw/usb-net.c
parent5bfd5521ff344eedd862abdfda9a68cefad912ba (diff)
downloadqemu-eb38c52c2a6df76928c1a4760bc87d21b256e22a.tar.gz
qemu-eb38c52c2a6df76928c1a4760bc87d21b256e22a.tar.bz2
qemu-eb38c52c2a6df76928c1a4760bc87d21b256e22a.zip
Fix most warnings that would be caused by gcc flag -Wundef
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5173 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/usb-net.c')
-rw-r--r--hw/usb-net.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/hw/usb-net.c b/hw/usb-net.c
index 27dea109ef..63edfd5450 100644
--- a/hw/usb-net.c
+++ b/hw/usb-net.c
@@ -1069,7 +1069,7 @@ static int usb_net_handle_control(USBDevice *dev, int request, int value,
case ClassInterfaceOutRequest | USB_CDC_SEND_ENCAPSULATED_COMMAND:
if (!s->rndis || value || index != 0)
goto fail;
-#if TRAFFIC_DEBUG
+#ifdef TRAFFIC_DEBUG
{
unsigned int i;
fprintf(stderr, "SEND_ENCAPSULATED_COMMAND:");
@@ -1092,7 +1092,7 @@ static int usb_net_handle_control(USBDevice *dev, int request, int value,
data[0] = 0;
ret = 1;
}
-#if TRAFFIC_DEBUG
+#ifdef TRAFFIC_DEBUG
{
unsigned int i;
fprintf(stderr, "GET_ENCAPSULATED_RESPONSE:");
@@ -1219,7 +1219,7 @@ static int usb_net_handle_statusin(USBNetState *s, USBPacket *p)
if (!s->rndis_resp.tqh_first)
ret = USB_RET_NAK;
-#if DEBUG
+#ifdef TRAFFIC_DEBUG
fprintf(stderr, "usbnet: interrupt poll len %u return %d", p->len, ret);
{
int i;
@@ -1260,7 +1260,7 @@ static int usb_net_handle_datain(USBNetState *s, USBPacket *p)
s->in_ptr = s->in_len = 0;
}
-#if TRAFFIC_DEBUG
+#ifdef TRAFFIC_DEBUG
fprintf(stderr, "usbnet: data in len %u return %d", p->len, ret);
{
int i;
@@ -1285,7 +1285,7 @@ static int usb_net_handle_dataout(USBNetState *s, USBPacket *p)
(struct rndis_packet_msg_type *) s->out_buf;
uint32_t len;
-#if TRAFFIC_DEBUG
+#ifdef TRAFFIC_DEBUG
fprintf(stderr, "usbnet: data out len %u\n", p->len);
{
int i;