mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-27 01:28:23 +00:00
[examples] fixed bug when device not found
This commit is contained in:
@@ -480,7 +480,7 @@ int device_test(const char * device_name)
|
||||
device = rt_device_find(device_name);
|
||||
if( device == RT_NULL)
|
||||
{
|
||||
rt_kprintf("device %s: not found!\r\n");
|
||||
rt_kprintf("device %s: not found!\r\n", device_name);
|
||||
return RT_ERROR;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user