Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Nov 2002 20:34:47 +0100
From:      =?ISO-8859-1?Q?Joachim_Str=F6mbergson?= <watchman@ludd.luth.se>
To:        FreeBSD-Audit <audit@FreeBSD.ORG>
Subject:   Small typofix for burncd
Message-ID:  <3DD00657.5000704@ludd.luth.se>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------040704030803000102090405
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Aloha!

Included with this mail is a short fix for burncd
(/usr/src/usr.sbin/burncd). The fix is simply a pedantic change from "K"
to "k" for the prefix "kilo". Would appreciate comments on the patch.

-- 
Med vänlig hälsning, Cheers!

Joachim Strömbergson
============================================================================
Joachim Strömbergson - ASIC designer, nice to *cute* animals.
    snail:                  phone:                     mail & web:
Sävenäsgatan 5A        +46 31 - 27 98 47          watchman@ludd.luth.se
416 72 Göteborg        +46 733 75 97 02           www.ludd.luth.se/~watchman
============================================================================

--------------040704030803000102090405
Content-Type: text/plain;
 name="udiff.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="udiff.txt"

--- /usr/src/usr.sbin/burncd/burncd.c	Sun Apr  7 17:55:33 2002
+++ burncd.c	Mon Nov 11 20:29:08 2002
@@ -326,7 +326,7 @@
 		    roundup_blocks(&tracks[notracks]))
 			pad = 1;
 		fprintf(stderr, 
-			"adding type 0x%02x file %s size %d KB %d blocks %s\n",
+			"adding type 0x%02x file %s size %d kB %d blocks %s\n",
 			tracks[notracks].block_type, name, (int)sb.st_size/1024,
 			roundup_blocks(&tracks[notracks]),
 			pad ? "(0 padded)" : "");
@@ -484,7 +484,7 @@
 			fprintf(stderr, "writing from stdin\n");
 		else
 			fprintf(stderr, 
-				"writing from file %s size %d KB\n",
+				"writing from file %s size %d kB\n",
 				track_info->file_name, filesize);
 	}
 	size = 0;
@@ -511,12 +511,12 @@
 		if (!quiet) {
 			int pct;
 
-			fprintf(stderr, "written this track %d KB", size/1024);
+			fprintf(stderr, "written this track %d kB", size/1024);
 			if (track_info->file != STDIN_FILENO && filesize) {
 				pct = (size / 1024) * 100 / filesize;
 				fprintf(stderr, " (%d%%)", pct);
 			}
-			fprintf(stderr, " total %d KB\r", tot_size/1024);
+			fprintf(stderr, " total %d kB\r", tot_size/1024);
 		}
 		if (size >= track_info->file_size)
 			break;

--------------040704030803000102090405--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-audit" in the body of the message




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