Skip to content
Permalink
Browse files

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
  • Loading branch information...
kusumi authored and behlendorf committed May 8, 2019
1 parent 4bb40c1 commit b689de85e8c78b9dc03c1bd4c3ca0f4e75714e92
Showing with 3 additions and 2 deletions.
  1. +2 −1 module/spl/spl-generic.c
  2. +1 −1 module/zfs/zfs_vfsops.c
@@ -662,7 +662,8 @@ spl_random_init(void)
}
printk("SPL: get_random_bytes() returned 0 "
"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) {
@@ -1002,7 +1002,7 @@ zfsvfs_init(zfsvfs_t *zfsvfs, objset_t *os)
zfs_zpl_version_map(spa_version(dmu_objset_spa(os)))) {
(void) printk("Can't mount a version %lld file system "
"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)));
return (SET_ERROR(ENOTSUP));
}

0 comments on commit b689de8

Please sign in to comment.
You can’t perform that action at this time.