summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-07-18 23:52:25 +0800
committerGitHub <[email protected]>2018-07-18 23:52:25 +0800
commita0112eb2ab7088463406fd81128fea90c84bd7e9 (patch)
treeafb359ea81e50cbe039fc05b2e02f476866728c8
parenta36869526897c2d0977e09e288e0a3485ba46017 (diff)
parent2c7fcf7d834a6e7cc8a41af3e5952f6559ca6ec8 (diff)
Merge pull request #1644 from liangyongxiang/examplers
[examples] fixed bug when device not found
-rw-r--r--examples/test/device_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/test/device_test.c b/examples/test/device_test.c
index c1902fe919..d62c2168ff 100644
--- a/examples/test/device_test.c
+++ b/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;
}