Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Kilo abbreviation is a small k (PR 18408).
details: https://anonhg.NetBSD.org/src/rev/cb8e26aa3477
branches: trunk
changeset: 537074:cb8e26aa3477
user: wiz <wiz%NetBSD.org@localhost>
date: Thu Sep 26 15:06:47 2002 +0000
description:
Kilo abbreviation is a small k (PR 18408).
diffstat:
lib/libc/gen/humanize_number.3 | 4 ++--
lib/libc/gen/humanize_number.c | 6 +++---
sys/kern/kern_subr.c | 12 ++++++------
3 files changed, 11 insertions(+), 11 deletions(-)
diffs (85 lines):
diff -r d84c4a8c42fb -r cb8e26aa3477 lib/libc/gen/humanize_number.3
--- a/lib/libc/gen/humanize_number.3 Thu Sep 26 15:06:06 2002 +0000
+++ b/lib/libc/gen/humanize_number.3 Thu Sep 26 15:06:47 2002 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: humanize_number.3,v 1.1 2002/08/22 17:24:09 abs Exp $
+.\" $NetBSD: humanize_number.3,v 1.2 2002/09/26 15:07:59 wiz Exp $
.\"
.\" Copyright (c) 1999, 2002 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -73,7 +73,7 @@
The prefixes are:
.Bl -column "Prefix" "Description" "Multiplier" -offset indent
.It Sy "Prefix" Ta Sy "Description" Ta Sy "Multiplier"
-.It K kilo 1024
+.It k kilo 1024
.It M mega 1048576
.It G giga 1073741824
.It T tera 1099511627776
diff -r d84c4a8c42fb -r cb8e26aa3477 lib/libc/gen/humanize_number.c
--- a/lib/libc/gen/humanize_number.c Thu Sep 26 15:06:06 2002 +0000
+++ b/lib/libc/gen/humanize_number.c Thu Sep 26 15:06:47 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: humanize_number.c,v 1.1 2002/08/22 17:24:10 abs Exp $ */
+/* $NetBSD: humanize_number.c,v 1.2 2002/09/26 15:08:00 wiz Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2002 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
#ifndef __lint
__COPYRIGHT("@(#) Copyright (c) 2002\n\
The NetBSD Foundation, inc. All rights reserved.\n");
-__RCSID("$NetBSD: humanize_number.c,v 1.1 2002/08/22 17:24:10 abs Exp $");
+__RCSID("$NetBSD: humanize_number.c,v 1.2 2002/09/26 15:08:00 wiz Exp $");
#endif /* !__lint */
#include <assert.h>
@@ -55,7 +55,7 @@
humanize_number(char *buf, size_t len, int64_t bytes,
const char *suffix, int scale, int flags)
{
- static const char prefixes[] = " KMGTPE";
+ static const char prefixes[] = " kMGTPE";
int i, r;
int64_t divisor, max, s1, s2, sign;
diff -r d84c4a8c42fb -r cb8e26aa3477 sys/kern/kern_subr.c
--- a/sys/kern/kern_subr.c Thu Sep 26 15:06:06 2002 +0000
+++ b/sys/kern/kern_subr.c Thu Sep 26 15:06:47 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_subr.c,v 1.89 2002/09/23 03:37:59 simonb Exp $ */
+/* $NetBSD: kern_subr.c,v 1.90 2002/09/26 15:06:47 wiz Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999, 2002 The NetBSD Foundation, Inc.
@@ -90,7 +90,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_subr.c,v 1.89 2002/09/23 03:37:59 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_subr.c,v 1.90 2002/09/26 15:06:47 wiz Exp $");
#include "opt_ddb.h"
#include "opt_md.h"
@@ -1160,8 +1160,8 @@
* bytes result
* ----- ------
* 99999 `99999 B'
- * 100000 `97 KB'
- * 66715648 `65152 KB'
+ * 100000 `97 kB'
+ * 66715648 `65152 kB'
* 252215296 `240 MB'
*/
int
@@ -1172,8 +1172,8 @@
const char *suffix;
int divisor;
{
- /* prefixes are: (none), Kilo, Mega, Giga, Tera, Peta, Exa */
- static const char prefixes[] = " KMGTPE";
+ /* prefixes are: (none), kilo, Mega, Giga, Tera, Peta, Exa */
+ static const char prefixes[] = " kMGTPE";
int r;
u_int64_t max;
Home |
Main Index |
Thread Index |
Old Index