diff options
author | Matt Kraai <kraai@debian.org> | 2000-07-14 01:51:25 +0000 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2000-07-14 01:51:25 +0000 |
commit | d537a95fdbc0b4a5f38edea8593b4c085fdd7fcb (patch) | |
tree | 62127f20fc07758e445d8c4e186306cbe83d77b1 /dd.c | |
parent | 4ac6cb534d78d63d7b0a206118c56bad7024b9f8 (diff) |
Use errorMsg rather than fprintf.
Diffstat (limited to 'dd.c')
-rw-r--r-- | dd.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -86,26 +86,26 @@ extern int dd_main(int argc, char **argv) else if (strncmp("count", *argv, 5) == 0) { count = getNum((strchr(*argv, '=')) + 1); if (count <= 0) { - fprintf(stderr, "Bad count value %s\n", *argv); + errorMsg("Bad count value %s\n", *argv); goto usage; } } else if (strncmp(*argv, "bs", 2) == 0) { blockSize = getNum((strchr(*argv, '=')) + 1); if (blockSize <= 0) { - fprintf(stderr, "Bad block size value %s\n", *argv); + errorMsg("Bad block size value %s\n", *argv); goto usage; } } else if (strncmp(*argv, "skip", 4) == 0) { skipBlocks = getNum((strchr(*argv, '=')) + 1); if (skipBlocks <= 0) { - fprintf(stderr, "Bad skip value %s\n", *argv); + errorMsg("Bad skip value %s\n", *argv); goto usage; } } else if (strncmp(*argv, "seek", 4) == 0) { seekBlocks = getNum((strchr(*argv, '=')) + 1); if (seekBlocks <= 0) { - fprintf(stderr, "Bad seek value %s\n", *argv); + errorMsg("Bad seek value %s\n", *argv); goto usage; } |