Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Nov 2018 14:21:02 +0000 (UTC)
From:      Toomas Soome <tsoome@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r341231 - head/stand/common
Message-ID:  <201811291421.wATEL2q5058319@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tsoome
Date: Thu Nov 29 14:21:01 2018
New Revision: 341231
URL: https://svnweb.freebsd.org/changeset/base/341231

Log:
  loader: command_bcache() should print unsigned values
  
  All bcache counters are unsigned.

Modified:
  head/stand/common/bcache.c

Modified: head/stand/common/bcache.c
==============================================================================
--- head/stand/common/bcache.c	Thu Nov 29 13:58:41 2018	(r341230)
+++ head/stand/common/bcache.c	Thu Nov 29 14:21:01 2018	(r341231)
@@ -476,12 +476,12 @@ command_bcache(int argc, char *argv[])
 	return(CMD_ERROR);
     }
 
-    printf("\ncache blocks: %d\n", bcache_total_nblks);
-    printf("cache blocksz: %d\n", bcache_blksize);
-    printf("cache readahead: %d\n", bcache_rablks);
-    printf("unit cache blocks: %d\n", bcache_unit_nblks);
-    printf("cached units: %d\n", bcache_units);
-    printf("%d ops  %d bypasses  %d hits  %d misses\n", bcache_ops,
+    printf("\ncache blocks: %u\n", bcache_total_nblks);
+    printf("cache blocksz: %u\n", bcache_blksize);
+    printf("cache readahead: %u\n", bcache_rablks);
+    printf("unit cache blocks: %u\n", bcache_unit_nblks);
+    printf("cached units: %u\n", bcache_units);
+    printf("%u ops %d bypasses %u hits %u misses\n", bcache_ops,
 	bcache_bypasses, bcache_hits, bcache_misses);
     return(CMD_OK);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811291421.wATEL2q5058319>