summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMarkus Armbruster2016-07-01 13:47:49 +0200
committerMichael S. Tsirkin2016-07-04 15:49:33 +0200
commit58eeb83cc7c445f167c951493deddf45621d66bb (patch)
tree601feb320c1b1d5c0ff7ea0a17a333f7678241fb /util
parentrange: Replace internal representation of Range (diff)
downloadqemu-58eeb83cc7c445f167c951493deddf45621d66bb.tar.gz
qemu-58eeb83cc7c445f167c951493deddf45621d66bb.tar.xz
qemu-58eeb83cc7c445f167c951493deddf45621d66bb.zip
log: Permit -dfilter 0..0xffffffffffffffff
Works fine since the previous commit fixed the underlying range data type. Of course it filters out nothing, but so does 0..1,2..0xffffffffffffffff, and we don't bother rejecting that either. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'util')
-rw-r--r--util/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/log.c b/util/log.c
index 4da635c8c9..b6c75b1102 100644
--- a/util/log.c
+++ b/util/log.c
@@ -204,7 +204,7 @@ void qemu_set_dfilter_ranges(const char *filter_spec, Error **errp)
default:
g_assert_not_reached();
}
- if (lob > upb || (lob == 0 && upb == UINT64_MAX)) {
+ if (lob > upb) {
error_setg(errp, "Invalid range");
goto out;
}