提交 3ef650d3 编写于 作者: J Joe Perches 提交者: Ilya Dryomov

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: NJoe Perches <joe@perches.com>
Signed-off-by: NIlya Dryomov <idryomov@gmail.com>
上级 a149bb9a
......@@ -175,13 +175,12 @@ static inline int ceph_decode_pgid(void **p, void *end, struct ceph_pg *pgid)
__u8 version;
if (!ceph_has_room(p, end, 1 + 8 + 4 + 4)) {
pr_warning("incomplete pg encoding");
pr_warn("incomplete pg encoding\n");
return -EINVAL;
}
version = ceph_decode_8(p);
if (version > 1) {
pr_warning("do not understand pg encoding %d > 1",
pr_warn("do not understand pg encoding %d > 1\n",
(int)version);
return -EINVAL;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册