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>
This commit is contained in:
Eric Blake 2016-06-23 16:37:25 -06:00 committed by Kevin Wolf
parent a5b8dd2ce8
commit 8cc9c6e92b

View File

@ -350,8 +350,8 @@ static void raw_probe_alignment(BlockDriverState *bs, int fd, Error **errp)
} }
if (!s->buf_align || !bs->bl.request_alignment) { if (!s->buf_align || !bs->bl.request_alignment) {
error_setg(errp, "Could not find working O_DIRECT alignment. " error_setg(errp, "Could not find working O_DIRECT alignment");
"Try cache.direct=off."); error_append_hint(errp, "Try cache.direct=off\n");
} }
} }