mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-01 06:21:52 -06:00
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
This commit is contained in:
parent
5bfd5521ff
commit
eb38c52c2a
14 changed files with 67 additions and 64 deletions
10
hw/usb-net.c
10
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue