- use bb_msg_{read,write}_error where appropriate.

text	   data	    bss	    dec	    hex	filename
 825015	   9100	 645216	1479331	 1692a3	busybox.old
 824919	   9100	 645216	1479235	 169243	busybox
This commit is contained in:
Bernhard Reutner-Fischer
2006-06-03 22:45:37 +00:00
parent a3d4bf38b0
commit 1b9d7c9aa9
6 changed files with 8 additions and 8 deletions

View File

@ -133,7 +133,7 @@ int fdformat_main(int argc,char **argv)
print_and_flush("%3d\b\b\b", cyl);
if((read_bytes = safe_read(fd,data,n))!= n ) {
if(read_bytes < 0) {
bb_perror_msg("Read: ");
bb_perror_msg(bb_msg_read_error);
}
bb_error_msg_and_die("Problem reading cylinder %d, expected %d, read %d", cyl, n, read_bytes);
}