Commit f3e28876 authored by Alexander Potapenko's avatar Alexander Potapenko Committed by David S. Miller

lib/test_bitmap: use pr_info() for non-error messages

pr_err() messages may be treated as errors by some log readers, so let
us only use them for test failures. For non-error messages, replace them
with pr_info().
Suggested-by: default avatarAlexander Lobakin <aleksander.lobakin@intel.com>
Signed-off-by: default avatarAlexander Potapenko <glider@google.com>
Acked-by: default avatarYury Norov <yury.norov@gmail.com>
Signed-off-by: default avatarYury Norov <yury.norov@gmail.com>
Signed-off-by: default avatarAlexander Lobakin <aleksander.lobakin@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 991e5583
......@@ -548,7 +548,7 @@ static void __init test_bitmap_parselist(void)
}
if (ptest.flags & PARSE_TIME)
pr_err("parselist: %d: input is '%s' OK, Time: %llu\n",
pr_info("parselist: %d: input is '%s' OK, Time: %llu\n",
i, ptest.in, time);
#undef ptest
......@@ -587,7 +587,7 @@ static void __init test_bitmap_printlist(void)
goto out;
}
pr_err("bitmap_print_to_pagebuf: input is '%s', Time: %llu\n", buf, time);
pr_info("bitmap_print_to_pagebuf: input is '%s', Time: %llu\n", buf, time);
out:
kfree(buf);
kfree(bmap);
......@@ -665,7 +665,7 @@ static void __init test_bitmap_parse(void)
}
if (test.flags & PARSE_TIME)
pr_err("parse: %d: input is '%s' OK, Time: %llu\n",
pr_info("parse: %d: input is '%s' OK, Time: %llu\n",
i, test.in, time);
}
}
......@@ -1421,7 +1421,7 @@ static void __init test_bitmap_read_perf(void)
}
}
time = ktime_get() - time;
pr_err("Time spent in %s:\t%llu\n", __func__, time);
pr_info("Time spent in %s:\t%llu\n", __func__, time);
}
static void __init test_bitmap_write_perf(void)
......@@ -1443,7 +1443,7 @@ static void __init test_bitmap_write_perf(void)
}
}
time = ktime_get() - time;
pr_err("Time spent in %s:\t%llu\n", __func__, time);
pr_info("Time spent in %s:\t%llu\n", __func__, time);
}
#undef TEST_BIT_LEN
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment