Add missing trailing '\n' in printk() messages

These messages will want '\n' like any other regular printk() messages.

Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Richard Laager <rlaager@wiktel.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@osnexus.com>
Closes #8726
This commit is contained in:
Tomohiro Kusumi 2019-05-09 08:43:55 +09:00 committed by Brian Behlendorf
parent 4bb40c1c82
commit b689de85e8
2 changed files with 3 additions and 2 deletions

View File

@ -662,7 +662,8 @@ spl_random_init(void)
} }
printk("SPL: get_random_bytes() returned 0 " printk("SPL: get_random_bytes() returned 0 "
"when generating random seed. Setting initial seed to " "when generating random seed. Setting initial seed to "
"0x%016llx%016llx.", cpu_to_be64(s[0]), cpu_to_be64(s[1])); "0x%016llx%016llx.\n", cpu_to_be64(s[0]),
cpu_to_be64(s[1]));
} }
for_each_possible_cpu(i) { for_each_possible_cpu(i) {

View File

@ -1002,7 +1002,7 @@ zfsvfs_init(zfsvfs_t *zfsvfs, objset_t *os)
zfs_zpl_version_map(spa_version(dmu_objset_spa(os)))) { zfs_zpl_version_map(spa_version(dmu_objset_spa(os)))) {
(void) printk("Can't mount a version %lld file system " (void) printk("Can't mount a version %lld file system "
"on a version %lld pool\n. Pool must be upgraded to mount " "on a version %lld pool\n. Pool must be upgraded to mount "
"this file system.", (u_longlong_t)zfsvfs->z_version, "this file system.\n", (u_longlong_t)zfsvfs->z_version,
(u_longlong_t)spa_version(dmu_objset_spa(os))); (u_longlong_t)spa_version(dmu_objset_spa(os)));
return (SET_ERROR(ENOTSUP)); return (SET_ERROR(ENOTSUP));
} }