-/* $OpenBSD: cacheinfo.c,v 1.11 2022/07/12 04:46:00 jsg Exp $ */
+/* $OpenBSD: cacheinfo.c,v 1.12 2024/02/03 09:53:15 jsg Exp $ */
/*
* Copyright (c) 2022 Jonathan Gray <jsg@openbsd.org>
printf("%s: ", ci->ci_dev->dv_xname);
- if (totalsize < 1024)
- printf("%dKB ", totalsize);
- else
- printf("%dMB ", totalsize >> 10);
+ printf("%dKB ", totalsize);
printf("%db/line ", linesize);
switch (ways) {
ways = (edx >> 16) & 0xff;
totalsize = (edx >> 24) & 0xff; /* KB */
- if (totalsize < 1024)
- printf("%dKB ", totalsize);
- else
- printf("%dMB ", totalsize >> 10);
+ printf("%dKB ", totalsize);
printf("%db/line ", linesize);
switch (ways) {