mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* kiB
@ 2001-12-27 16:05 andersg
  2001-12-27 16:14 ` kiB Martin Jonsson
  2001-12-27 22:31 ` kiB Guest section DW
  0 siblings, 2 replies; 4+ messages in thread
From: andersg @ 2001-12-27 16:05 UTC (permalink / raw)
  To: linux-kernel

this shouldn't be that controversial, as it's only visible to people
compiling kernels :)

-- 

//anders/g

diff -ru linux-2.5.2-pre2/arch/i386/boot/tools/build.c linux-2.5.2-pre2-lvmfix/arch/i386/boot/tools/build.c
--- linux-2.5.2-pre2/arch/i386/boot/tools/build.c	Mon Jul  2 22:56:40 2001
+++ linux-2.5.2-pre2-lvmfix/arch/i386/boot/tools/build.c	Thu Dec 27 16:48:55 2001
@@ -148,7 +148,7 @@
 	if (fstat (fd, &sb))
 		die("Unable to stat `%s': %m", argv[3]);
 	sz = sb.st_size;
-	fprintf (stderr, "System is %d kB\n", sz/1024);
+	fprintf (stderr, "System is %d kiB\n", sz/1024);
 	sys_size = (sz + 15) / 16;
 	/* 0x28000*16 = 2.5 MB, conservative estimate for the current maximum */
 	if (sys_size > (is_big_kernel ? 0x28000 : DEF_SYSSIZE))

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: kiB
  2001-12-27 16:05 kiB andersg
@ 2001-12-27 16:14 ` Martin Jonsson
  2001-12-27 16:18   ` kiB andersg
  2001-12-27 22:31 ` kiB Guest section DW
  1 sibling, 1 reply; 4+ messages in thread
From: Martin Jonsson @ 2001-12-27 16:14 UTC (permalink / raw)
  To: andersg; +Cc: linux-kernel

andersg@0x63.nu wrote:

> this shouldn't be that controversial, as it's only visible to people
> compiling kernels :)
>
> --
>
> //anders/g
>
> diff -ru linux-2.5.2-pre2/arch/i386/boot/tools/build.c
> linux-2.5.2-pre2-lvmfix/arch/i386/boot/tools/build.c
> --- linux-2.5.2-pre2/arch/i386/boot/tools/build.c       Mon Jul  2
> 22:56:40 2001
> +++ linux-2.5.2-pre2-lvmfix/arch/i386/boot/tools/build.c        Thu Dec
> 27
> 16:48:55 2001
> @@ -148,7 +148,7 @@
>         if (fstat (fd, &sb))
>                die("Unable to stat `%s': %m", argv[3]);
>         sz = sb.st_size;
> -       fprintf (stderr, "System is %d kB\n", sz/1024);
> +       fprintf (stderr, "System is %d kiB\n", sz/1024);

Shouldn't that be "KiB" when talking about kibibytes?

>         sys_size = (sz + 15) / 16;
>         /* 0x28000*16 = 2.5 MB, conservative estimate for the current
> maximum */
>         if (sys_size > (is_big_kernel ? 0x28000 : DEF_SYSSIZE))

--
/marty


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: kiB
  2001-12-27 16:14 ` kiB Martin Jonsson
@ 2001-12-27 16:18   ` andersg
  0 siblings, 0 replies; 4+ messages in thread
From: andersg @ 2001-12-27 16:18 UTC (permalink / raw)
  To: Martin Jonsson; +Cc: andersg, linux-kernel

On Thu, Dec 27, 2001 at 05:14:25PM +0100, Martin Jonsson wrote:
> > -       fprintf (stderr, "System is %d kB\n", sz/1024);
> > +       fprintf (stderr, "System is %d kiB\n", sz/1024);
> 
> Shouldn't that be "KiB" when talking about kibibytes?

yes, ofcourse.. new patch attached :)

-- 

//anders/g

diff -ru linux-2.5.2-pre2/arch/i386/boot/tools/build.c linux-2.5.2-pre2-lvmfix/arch/i386/boot/tools/build.c
--- linux-2.5.2-pre2/arch/i386/boot/tools/build.c	Mon Jul  2 22:56:40 2001
+++ linux-2.5.2-pre2-lvmfix/arch/i386/boot/tools/build.c	Thu Dec 27 17:13:20 2001
@@ -148,7 +148,7 @@
 	if (fstat (fd, &sb))
 		die("Unable to stat `%s': %m", argv[3]);
 	sz = sb.st_size;
-	fprintf (stderr, "System is %d kB\n", sz/1024);
+	fprintf (stderr, "System is %d KiB\n", sz/1024);
 	sys_size = (sz + 15) / 16;
 	/* 0x28000*16 = 2.5 MB, conservative estimate for the current maximum */
 	if (sys_size > (is_big_kernel ? 0x28000 : DEF_SYSSIZE))

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: kiB
  2001-12-27 16:05 kiB andersg
  2001-12-27 16:14 ` kiB Martin Jonsson
@ 2001-12-27 22:31 ` Guest section DW
  1 sibling, 0 replies; 4+ messages in thread
From: Guest section DW @ 2001-12-27 22:31 UTC (permalink / raw)
  To: andersg, linux-kernel

On Thu, Dec 27, 2001 at 05:05:57PM +0100, andersg@0x63.nu wrote:
> this shouldn't be that controversial, as it's only visible to people
> compiling kernels :)

> +	fprintf (stderr, "System is %d kiB\n", sz/1024);

But if you want to change things to conform, do so.
The unit is Ki, not ki.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-12-27 22:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-27 16:05 kiB andersg
2001-12-27 16:14 ` kiB Martin Jonsson
2001-12-27 16:18   ` kiB andersg
2001-12-27 22:31 ` kiB Guest section DW

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®