From: Eric Blake Date: Thu, 23 Jun 2016 22:37:25 +0000 (-0600) Subject: block: Fix error message style X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8cc9c6e92bed8459bffaf5a22af8560f2cd8042b;p=qemu.git block: Fix error message style error_setg() is not supposed to be used for multi-sentence messages; tweak the message to append a hint instead. Signed-off-by: Eric Blake Reviewed-by: Fam Zheng Signed-off-by: Kevin Wolf --- diff --git a/block/raw-posix.c b/block/raw-posix.c index d3d7cce807..c979ac3fd1 100644 --- a/block/raw-posix.c +++ b/block/raw-posix.c @@ -350,8 +350,8 @@ static void raw_probe_alignment(BlockDriverState *bs, int fd, Error **errp) } if (!s->buf_align || !bs->bl.request_alignment) { - error_setg(errp, "Could not find working O_DIRECT alignment. " - "Try cache.direct=off."); + error_setg(errp, "Could not find working O_DIRECT alignment"); + error_append_hint(errp, "Try cache.direct=off\n"); } }