summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2020-08-13 11:31:48 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2020-08-13 11:31:48 +0000
commite2e46a2725ca5549e61f0ca67bfe13c78dcad586 (patch)
tree373195f41778394fb65799a3df03930652405ac5 /usr.sbin
parent34c8f8abef1f6b471394292e9eb47a0679fb2fcf (diff)
When dealing with integers, it seems that [1] and [1, 2) are the same.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/btrace/map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/btrace/map.c b/usr.sbin/btrace/map.c
index f0e9cac1672..334bfb1ad79 100644
--- a/usr.sbin/btrace/map.c
+++ b/usr.sbin/btrace/map.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: map.c,v 1.9 2020/08/07 14:04:59 mpi Exp $ */
+/* $OpenBSD: map.c,v 1.10 2020/08/13 11:31:47 mpi Exp $ */
/*
* Copyright (c) 2020 Martin Pieuchot <mpi@openbsd.org>
@@ -289,7 +289,7 @@ hist_print_bucket(char *buf, size_t buflen, long upb, long hstep)
/* Power-of-two histogram */
if (upb < 0) {
l = snprintf(buf, buflen, "(..., 0)");
- } else if (upb < 2) {
+ } else if (upb == 0) {
l = snprintf(buf, buflen, "[%lu]", upb);
} else {
long lob = upb / 2;