Skip to content

Commit 08d1ce4

Browse files
committed
style(class): remove device warning logs for memory
Signed-off-by: sakumisu <1203593632@qq.com>
1 parent 0cac0ab commit 08d1ce4

7 files changed

Lines changed: 0 additions & 40 deletions

File tree

class/audio/usbd_audio.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ static int audio_class_endpoint_request_handler(uint8_t busid, struct usb_setup_
4949

5050
break;
5151
default:
52-
USB_LOG_WRN("Unhandled Audio Class control selector 0x%02x\r\n", control_selector);
5352
return -1;
5453
}
5554
return 0;
@@ -109,7 +108,6 @@ static int audio_class_interface_request_handler(uint8_t busid, struct usb_setup
109108
*len = 1;
110109
break;
111110
default:
112-
USB_LOG_WRN("Unhandled Audio Class bRequest 0x%02x in cs 0x%02x\r\n", setup->bRequest, control_selector);
113111
return -1;
114112
}
115113
} else {
@@ -124,7 +122,6 @@ static int audio_class_interface_request_handler(uint8_t busid, struct usb_setup
124122
}
125123
break;
126124
default:
127-
//USB_LOG_WRN("Unhandled Audio Class bRequest 0x%02x in cs 0x%02x\r\n", setup->bRequest, control_selector);
128125
return -1;
129126
}
130127
}
@@ -169,7 +166,6 @@ static int audio_class_interface_request_handler(uint8_t busid, struct usb_setup
169166
*len = 2;
170167
break;
171168
default:
172-
USB_LOG_WRN("Unhandled Audio Class bRequest 0x%02x in cs 0x%02x\r\n", setup->bRequest, control_selector);
173169
return -1;
174170
}
175171
} else {
@@ -207,14 +203,12 @@ static int audio_class_interface_request_handler(uint8_t busid, struct usb_setup
207203
}
208204
break;
209205
default:
210-
//USB_LOG_WRN("Unhandled Audio Class bRequest 0x%02x in cs 0x%02x\r\n", setup->bRequest, control_selector);
211206
return -1;
212207
}
213208
}
214209
break;
215210

216211
default:
217-
USB_LOG_WRN("Unhandled Audio Class cs 0x%02x \r\n", control_selector);
218212
return -1;
219213
}
220214
break;
@@ -247,7 +241,6 @@ static int audio_class_interface_request_handler(uint8_t busid, struct usb_setup
247241
}
248242
break;
249243
default:
250-
//USB_LOG_WRN("Unhandled Audio Class bRequest 0x%02x in cs 0x%02x\r\n", setup->bRequest, control_selector);
251244
return -1;
252245
}
253246
break;
@@ -261,7 +254,6 @@ static int audio_class_interface_request_handler(uint8_t busid, struct usb_setup
261254
break;
262255

263256
default:
264-
//USB_LOG_WRN("Unhandled Audio Class cs 0x%02x \r\n", control_selector);
265257
return -1;
266258
}
267259
break;

class/cdc/usbd_cdc_acm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ static int cdc_acm_class_interface_request_handler(uint8_t busid, struct usb_set
7676
usbd_cdc_acm_send_break(busid, intf_num);
7777
break;
7878
default:
79-
USB_LOG_WRN("Unhandled CDC Class bRequest 0x%02x\r\n", setup->bRequest);
8079
return -1;
8180
}
8281

class/cdc/usbd_cdc_ecm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ static int cdc_ecm_class_interface_request_handler(uint8_t busid, struct usb_set
106106
#endif
107107
break;
108108
default:
109-
USB_LOG_WRN("Unhandled CDC ECM Class bRequest 0x%02x\r\n", setup->bRequest);
110109
return -1;
111110
}
112111

class/hid/usbd_hid.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ static int hid_class_interface_request_handler(uint8_t busid, struct usb_setup_p
4141
break;
4242

4343
default:
44-
USB_LOG_WRN("Unhandled HID Class bRequest 0x%02x\r\n", setup->bRequest);
4544
return -1;
4645
}
4746

class/msc/usbd_msc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ static int msc_storage_class_interface_request_handler(uint8_t busid, struct usb
8989
break;
9090

9191
default:
92-
USB_LOG_WRN("Unhandled MSC Class bRequest 0x%02x\r\n", setup->bRequest);
9392
return -1;
9493
}
9594

class/video/usbd_video.c

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ static int usbd_video_control_request_handler(uint8_t busid, struct usb_setup_pa
4444
case VIDEO_REQUEST_GET_INFO:
4545
break;
4646
default:
47-
USB_LOG_WRN("Unhandled Video Class bRequest 0x%02x\r\n", setup->bRequest);
4847
return -1;
4948
}
5049

@@ -58,7 +57,6 @@ static int usbd_video_control_request_handler(uint8_t busid, struct usb_setup_pa
5857
case VIDEO_REQUEST_GET_INFO:
5958
break;
6059
default:
61-
USB_LOG_WRN("Unhandled Video Class bRequest 0x%02x\r\n", setup->bRequest);
6260
return -1;
6361
}
6462

@@ -91,7 +89,6 @@ static int usbd_video_control_unit_terminal_request_handler(uint8_t busid, struc
9189
*len = 1;
9290
break;
9391
default:
94-
USB_LOG_WRN("Unhandled Video Class bRequest 0x%02x\r\n", setup->bRequest);
9592
return -1;
9693
}
9794
break;
@@ -127,7 +124,6 @@ static int usbd_video_control_unit_terminal_request_handler(uint8_t busid, struc
127124
*len = 4;
128125
} break;
129126
default:
130-
USB_LOG_WRN("Unhandled Video Class bRequest 0x%02x\r\n", setup->bRequest);
131127
return -1;
132128
}
133129
break;
@@ -163,7 +159,6 @@ static int usbd_video_control_unit_terminal_request_handler(uint8_t busid, struc
163159
*len = 2;
164160
} break;
165161
default:
166-
USB_LOG_WRN("Unhandled Video Class bRequest 0x%02x\r\n", setup->bRequest);
167162
return -1;
168163
}
169164
break;
@@ -199,7 +194,6 @@ static int usbd_video_control_unit_terminal_request_handler(uint8_t busid, struc
199194
*len = 2;
200195
} break;
201196
default:
202-
USB_LOG_WRN("Unhandled Video Class bRequest 0x%02x\r\n", setup->bRequest);
203197
return -1;
204198
}
205199
break;
@@ -235,7 +229,6 @@ static int usbd_video_control_unit_terminal_request_handler(uint8_t busid, struc
235229
*len = 2;
236230
} break;
237231
default:
238-
USB_LOG_WRN("Unhandled Video Class bRequest 0x%02x\r\n", setup->bRequest);
239232
return -1;
240233
}
241234
break;
@@ -247,16 +240,13 @@ static int usbd_video_control_unit_terminal_request_handler(uint8_t busid, struc
247240
*len = 2;
248241
} break;
249242
default:
250-
USB_LOG_WRN("Unhandled Video Class bRequest 0x%02x\r\n", setup->bRequest);
251243
return -1;
252244
}
253245
break;
254246
default:
255-
USB_LOG_WRN("Unhandled Video Class control selector 0x%02x\r\n", control_selector);
256247
return -1;
257248
}
258249
} else {
259-
USB_LOG_WRN("Unhandled Video Class wTerminalType 0x%02x\r\n", entity_info->wTerminalType);
260250
return -2;
261251
}
262252
break;
@@ -298,7 +288,6 @@ static int usbd_video_control_unit_terminal_request_handler(uint8_t busid, struc
298288
*len = 2;
299289
} break;
300290
default:
301-
USB_LOG_WRN("Unhandled Video Class bRequest 0x%02x\r\n", setup->bRequest);
302291
return -1;
303292
}
304293
break;
@@ -337,7 +326,6 @@ static int usbd_video_control_unit_terminal_request_handler(uint8_t busid, struc
337326
*len = 2;
338327
} break;
339328
default:
340-
USB_LOG_WRN("Unhandled Video Class bRequest 0x%02x\r\n", setup->bRequest);
341329
return -1;
342330
}
343331
break;
@@ -373,7 +361,6 @@ static int usbd_video_control_unit_terminal_request_handler(uint8_t busid, struc
373361
*len = 2;
374362
} break;
375363
default:
376-
USB_LOG_WRN("Unhandled Video Class bRequest 0x%02x\r\n", setup->bRequest);
377364
return -1;
378365
}
379366
break;
@@ -409,7 +396,6 @@ static int usbd_video_control_unit_terminal_request_handler(uint8_t busid, struc
409396
*len = 2;
410397
} break;
411398
default:
412-
USB_LOG_WRN("Unhandled Video Class bRequest 0x%02x\r\n", setup->bRequest);
413399
return -1;
414400
}
415401
break;
@@ -440,7 +426,6 @@ static int usbd_video_control_unit_terminal_request_handler(uint8_t busid, struc
440426
*len = 2;
441427
} break;
442428
default:
443-
USB_LOG_WRN("Unhandled Video Class bRequest 0x%02x\r\n", setup->bRequest);
444429
return -1;
445430
}
446431
break;
@@ -471,7 +456,6 @@ static int usbd_video_control_unit_terminal_request_handler(uint8_t busid, struc
471456
*len = 2;
472457
} break;
473458
default:
474-
USB_LOG_WRN("Unhandled Video Class bRequest 0x%02x\r\n", setup->bRequest);
475459
return -1;
476460
}
477461
break;
@@ -502,7 +486,6 @@ static int usbd_video_control_unit_terminal_request_handler(uint8_t busid, struc
502486
*len = 2;
503487
} break;
504488
default:
505-
USB_LOG_WRN("Unhandled Video Class bRequest 0x%02x\r\n", setup->bRequest);
506489
return -1;
507490
}
508491
break;
@@ -538,7 +521,6 @@ static int usbd_video_control_unit_terminal_request_handler(uint8_t busid, struc
538521
*len = 2;
539522
} break;
540523
default:
541-
USB_LOG_WRN("Unhandled Video Class bRequest 0x%02x\r\n", setup->bRequest);
542524
return -1;
543525
}
544526
break;
@@ -550,13 +532,11 @@ static int usbd_video_control_unit_terminal_request_handler(uint8_t busid, struc
550532
*len = 1;
551533
} break;
552534
default:
553-
USB_LOG_WRN("Unhandled Video Class bRequest 0x%02x\r\n", setup->bRequest);
554535
return -1;
555536
}
556537
break;
557538
default:
558539
g_usbd_video[busid].error_code = 0x06;
559-
USB_LOG_WRN("Unhandled Video Class control selector 0x%02x\r\n", control_selector);
560540
return -1;
561541
}
562542
break;
@@ -606,7 +586,6 @@ static int usbd_video_stream_request_handler(uint8_t busid, struct usb_setup_pac
606586
break;
607587

608588
default:
609-
USB_LOG_WRN("Unhandled Video Class bRequest 0x%02x\r\n", setup->bRequest);
610589
return -1;
611590
}
612591
break;
@@ -638,7 +617,6 @@ static int usbd_video_stream_request_handler(uint8_t busid, struct usb_setup_pac
638617
break;
639618

640619
default:
641-
USB_LOG_WRN("Unhandled Video Class bRequest 0x%02x\r\n", setup->bRequest);
642620
return -1;
643621
}
644622
break;
@@ -653,7 +631,6 @@ static int usbd_video_stream_request_handler(uint8_t busid, struct usb_setup_pac
653631
*len = 1;
654632
break;
655633
default:
656-
USB_LOG_WRN("Unhandled Video Class bRequest 0x%02x\r\n", setup->bRequest);
657634
return -1;
658635
}
659636
break;

class/wireless/usbd_rndis.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -365,14 +365,9 @@ static int rndis_set_cmd_handler(uint8_t *data, uint32_t len)
365365

366366
switch (cmd->Oid) {
367367
case OID_GEN_RNDIS_CONFIG_PARAMETER:
368-
param = (rndis_config_parameter_t *)((uint8_t *)&(cmd->RequestId) + cmd->InformationBufferOffset);
369-
USB_LOG_WRN("RNDIS cfg param: NameOfs=%d, NameLen=%d, ValueOfs=%d, ValueLen=%d\r\n",
370-
param->ParameterNameOffset, param->ParameterNameLength,
371-
param->ParameterValueOffset, param->ParameterValueLength);
372368
break;
373369
case OID_GEN_CURRENT_PACKET_FILTER:
374370
if (cmd->InformationBufferLength < sizeof(g_usbd_rndis.net_filter)) {
375-
USB_LOG_WRN("PACKET_FILTER!\r\n");
376371
resp->Status = RNDIS_STATUS_INVALID_DATA;
377372
} else {
378373
uint32_t *filter;

0 commit comments

Comments
 (0)