mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-02-05 15:23:03 +08:00
[errno code][-RT_ERROR] fix that use RT_ERROR without -
This commit is contained in:
committed by
Man, Jianting (Meco)
parent
de963feef4
commit
0f461e870c
@@ -465,7 +465,7 @@ __return:
|
||||
rt_free(write_buffer);
|
||||
}
|
||||
rt_device_close(device);
|
||||
return RT_ERROR;
|
||||
return -RT_ERROR;
|
||||
}
|
||||
|
||||
int device_test(const char * device_name)
|
||||
@@ -477,7 +477,7 @@ int device_test(const char * device_name)
|
||||
if( device == RT_NULL)
|
||||
{
|
||||
rt_kprintf("device %s: not found!\r\n", device_name);
|
||||
return RT_ERROR;
|
||||
return -RT_ERROR;
|
||||
}
|
||||
|
||||
// step 2:init device
|
||||
@@ -505,7 +505,7 @@ int device_test(const char * device_name)
|
||||
return _block_device_test(device);
|
||||
default:
|
||||
rt_kprintf("unkown device type : %02X",device->type);
|
||||
return RT_ERROR;
|
||||
return -RT_ERROR;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ int rtc_test(void)
|
||||
if(ret != RT_EOK)
|
||||
{
|
||||
rt_kprintf("[RTC Test]Set RTC Date failed\n");
|
||||
return RT_ERROR;
|
||||
return -RT_ERROR;
|
||||
}
|
||||
|
||||
rt_thread_delay(RT_TICK_PER_SECOND);
|
||||
@@ -36,7 +36,7 @@ int rtc_test(void)
|
||||
if(ret != RT_EOK)
|
||||
{
|
||||
rt_kprintf("[RTC Test]Set RTC Time failed\n");
|
||||
return RT_ERROR;
|
||||
return -RT_ERROR;
|
||||
}
|
||||
|
||||
rt_thread_delay(RT_TICK_PER_SECOND);
|
||||
|
||||
Reference in New Issue
Block a user