Revision eb38c52c hw/usb-net.c

b/hw/usb-net.c
1069 1069
    case ClassInterfaceOutRequest | USB_CDC_SEND_ENCAPSULATED_COMMAND:
1070 1070
        if (!s->rndis || value || index != 0)
1071 1071
            goto fail;
1072
#if TRAFFIC_DEBUG
1072
#ifdef TRAFFIC_DEBUG
1073 1073
        {
1074 1074
            unsigned int i;
1075 1075
            fprintf(stderr, "SEND_ENCAPSULATED_COMMAND:");
......
1092 1092
            data[0] = 0;
1093 1093
            ret = 1;
1094 1094
        }
1095
#if TRAFFIC_DEBUG
1095
#ifdef TRAFFIC_DEBUG
1096 1096
        {
1097 1097
            unsigned int i;
1098 1098
            fprintf(stderr, "GET_ENCAPSULATED_RESPONSE:");
......
1219 1219
    if (!s->rndis_resp.tqh_first)
1220 1220
        ret = USB_RET_NAK;
1221 1221

  
1222
#if DEBUG
1222
#ifdef TRAFFIC_DEBUG
1223 1223
    fprintf(stderr, "usbnet: interrupt poll len %u return %d", p->len, ret);
1224 1224
    {
1225 1225
        int i;
......
1260 1260
        s->in_ptr = s->in_len = 0;
1261 1261
    }
1262 1262

  
1263
#if TRAFFIC_DEBUG
1263
#ifdef TRAFFIC_DEBUG
1264 1264
    fprintf(stderr, "usbnet: data in len %u return %d", p->len, ret);
1265 1265
    {
1266 1266
        int i;
......
1285 1285
            (struct rndis_packet_msg_type *) s->out_buf;
1286 1286
    uint32_t len;
1287 1287

  
1288
#if TRAFFIC_DEBUG
1288
#ifdef TRAFFIC_DEBUG
1289 1289
    fprintf(stderr, "usbnet: data out len %u\n", p->len);
1290 1290
    {
1291 1291
        int i;

Also available in: Unified diff