mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2024-11-06 10:47:35 +01:00
use fprintf instead of printf
Patch provided by 'airwave', Thanks! Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
parent
20313516cc
commit
6eeceba397
@ -143,7 +143,7 @@ int main(int argc, char **argv)
|
||||
file = fopen(filename, "wb");
|
||||
|
||||
if (!file) {
|
||||
printf("Failed to open %s\n", filename);
|
||||
fprintf(stderr, "Failed to open %s\n", filename);
|
||||
goto out;
|
||||
}
|
||||
|
||||
@ -162,7 +162,7 @@ int main(int argc, char **argv)
|
||||
fwrite(buffer, n_read, 1, file);
|
||||
|
||||
if (n_read < READLEN) {
|
||||
printf("Short read, samples lost, exiting!\n");
|
||||
fprintf(stderr, "Short read, samples lost, exiting!\n");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user