diff options
author | Eric Blake <eblake@redhat.com> | 2016-06-23 16:37:25 -0600 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-07-05 16:46:26 +0200 |
commit | 8cc9c6e92bed8459bffaf5a22af8560f2cd8042b (patch) | |
tree | a837a561430afaf0eb8a802f8655e4cc02f1585c /block/raw-posix.c | |
parent | a5b8dd2ce83208cd7d6eb4562339ecf5aae13574 (diff) | |
download | qemu-8cc9c6e92bed8459bffaf5a22af8560f2cd8042b.tar.gz qemu-8cc9c6e92bed8459bffaf5a22af8560f2cd8042b.tar.bz2 qemu-8cc9c6e92bed8459bffaf5a22af8560f2cd8042b.zip |
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 <eblake@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/raw-posix.c')
-rw-r--r-- | block/raw-posix.c | 4 |
1 files changed, 2 insertions, 2 deletions
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"); } } |