Explorar o código

[examples] fixed bug when device not found

liang yongxiang %!s(int64=6) %!d(string=hai) anos
pai
achega
2c7fcf7d83
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/test/device_test.c

+ 1 - 1
examples/test/device_test.c

@@ -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;
     }