@@ -158,7 +158,7 @@ const char **tst_get_supported_fs_types(const char *const *skiplist)
only_fs = getenv("LTP_SINGLE_FS_TYPE");
if (only_fs) {
- tst_res(TINFO, "WARNING: testing only %s", only_fs);
+ tst_res(TINFO_WARN, "testing only %s", only_fs);
if (tst_fs_is_supported(only_fs))
fs_types[0] = only_fs;
return fs_types;
@@ -106,8 +106,8 @@ void rm_shm(int shm_id)
* check for # of attaches ?
*/
if (shmctl(shm_id, IPC_RMID, NULL) == -1) {
- tst_res(TINFO, "WARNING: shared memory deletion failed.");
- tst_res(TINFO, "This could lead to IPC resource problems.");
+ tst_res(TINFO_WARN, "shared memory deletion failed");
+ tst_res(TINFO, "This could lead to IPC resource problems");
tst_res(TINFO, "id = %d", shm_id);
}
}
@@ -40,7 +40,7 @@ static void run(void)
tst_res(TPASS, "time_high fields cleared by the kernel");
if (semctl(semid, 0, IPC_RMID, arg) == -1)
- tst_res(TINFO, "WARNING: semaphore deletion failed.");
+ tst_res(TINFO_WARN, "semaphore deletion failed");
}
static struct tst_test test = {
Signed-off-by: Petr Vorel <pvorel@suse.cz> --- lib/tst_supported_fs_types.c | 2 +- testcases/kernel/mem/hugetlb/lib/hugetlb.c | 4 ++-- testcases/kernel/syscalls/ipc/semctl/semctl08.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)