]> git.proxmox.com Git - mirror_qemu.git/commit - block/blkdebug.c
blkdebug: show an error for invalid event names
authorStefan Hajnoczi <stefanha@redhat.com>
Sat, 20 Sep 2014 08:55:52 +0000 (09:55 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 25 Sep 2014 13:24:14 +0000 (15:24 +0200)
commitd4362d642e5cfd50671eba250b5888a89a88691a
tree31d59689cd4170c5a58ff9a9949bc8425ebe804b
parent4f2280b2190e39aa6761cc8188626ed9aad350c1
blkdebug: show an error for invalid event names

It is easy to typo a blkdebug configuration and waste a lot of time
figuring out why no rules are matching.

Push the Error** down into add_rule() so we can report an error when the
event name is invalid.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/blkdebug.c