Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

libceph: osdmap.h: Add missing format newlines

To avoid possible interleaving, add missing '\n' to formats.

Convert pr_warning to pr_warn while there.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>

authored by

Joe Perches and committed by
Ilya Dryomov
3ef650d3 a149bb9a

+2 -3
+2 -3
include/linux/ceph/osdmap.h
··· 175 175 __u8 version; 176 176 177 177 if (!ceph_has_room(p, end, 1 + 8 + 4 + 4)) { 178 - pr_warning("incomplete pg encoding"); 179 - 178 + pr_warn("incomplete pg encoding\n"); 180 179 return -EINVAL; 181 180 } 182 181 version = ceph_decode_8(p); 183 182 if (version > 1) { 184 - pr_warning("do not understand pg encoding %d > 1", 183 + pr_warn("do not understand pg encoding %d > 1\n", 185 184 (int)version); 186 185 return -EINVAL; 187 186 }