From 704278e45d0441c5a13777af727e4159f2ebffd9 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 7 Apr 2023 07:00:42 -0500 Subject: [PATCH] Don't show revision 0. --- toys/other/lsusb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toys/other/lsusb.c b/toys/other/lsusb.c index aa802b34..600858bb 100644 --- a/toys/other/lsusb.c +++ b/toys/other/lsusb.c @@ -226,7 +226,7 @@ static int list_pci(struct dirtree *new) break; } else printf(" \"%s [%s]\"", names[ii], buf); } - printf(FLAG(m) ? " -r%02x" : " (rev %02x)", revision); + if (revision) printf(FLAG(m) ? " -r%02x" : " (rev %02x)", revision); if (FLAG(k) && driver) printf(FLAG(m) ? " \"%s\"" : " %s", driver); xputc('\n'); -- 2.39.2