backout previous kprintf change

This commit is contained in:
christos 1996-10-12 22:14:10 +00:00
parent 040651bd9c
commit 007ac90882

View File

@ -39,7 +39,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)copy.c 8.1 (Berkeley) 6/11/93";*/
static char rcsid[] = "$NetBSD: copy.c,v 1.6 1996/10/10 23:32:59 christos Exp $";
static char rcsid[] = "$NetBSD: copy.c,v 1.7 1996/10/12 22:14:10 christos Exp $";
#endif /* not lint */
#define BSIZE 10240
@ -59,17 +59,17 @@ main()
if (!(rcc = read(from, buf, bsize)))
break;
if (rcc < 0) {
kprintf("Record %d: read error, errno=%d\n",
printf("Record %d: read error, errno=%d\n",
record, errno);
break;
}
if (rcc != bsize) {
if (record == 0) {
bsize = rcc;
kprintf("Block size set from input; %d bytes\n",
printf("Block size set from input; %d bytes\n",
bsize);
} else
kprintf("Record %d: read short; expected %d, got %d\n",
printf("Record %d: read short; expected %d, got %d\n",
record, bsize, rcc);
}
#ifdef vax
@ -78,15 +78,15 @@ main()
rcc = bsize;
#endif
if ((wcc = write(to, buf, rcc)) < 0) {
kprintf("Record %d: write error: errno=%d\n",
printf("Record %d: write error: errno=%d\n",
record, errno);
break;
}
if (wcc < rcc) {
kprintf("Record %d: write short; expected %d, got %d\n",
printf("Record %d: write short; expected %d, got %d\n",
record, rcc, wcc);
break;
}
}
kprintf("copy completed: %d records copied\n", record);
printf("copy completed: %d records copied\n", record);
}