Minor formatting change in swapctl -l as noted in my PR bin/51155

This commit is contained in:
pgoyette 2016-05-31 09:34:25 +00:00
parent b17d0f9679
commit 596954117f
1 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: swaplist.c,v 1.17 2009/04/06 12:38:35 lukem Exp $ */
/* $NetBSD: swaplist.c,v 1.18 2016/05/31 09:34:25 pgoyette Exp $ */
/*
* Copyright (c) 1997 Matthew R. Green
@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: swaplist.c,v 1.17 2009/04/06 12:38:35 lukem Exp $");
__RCSID("$NetBSD: swaplist.c,v 1.18 2016/05/31 09:34:25 pgoyette Exp $");
#endif
@ -184,10 +184,10 @@ list_swap(int pri, int kflag, int pflag, int tflag, int dolong, int hflag)
if ((humanize_number(avbuf, sizeof(avbuf), (dbtoqb(totalsize-totalinuse)),
"", HN_AUTOSCALE, (HN_DECIMAL | HN_B | HN_NOSPACE))) == -1)
err(1, "humanize_number");
(void)printf("total: %s allocated = %s used, %s available.\n",
(void)printf("total: %s allocated, %s used, %s available.\n",
szbuf, usbuf, avbuf);
} else {
printf("total: %ld %s allocated = %ld %s used, "
printf("total: %ld %s allocated, %ld %s used, "
"%ld %s available\n",
(long)(dbtoqb(totalsize) / blocksize), suff,
(long)(dbtoqb(totalinuse) / blocksize), suff,