template.c: optimize printf(..."\n") to puts(...)
This commit is contained in:
parent
2c4101ae82
commit
e4a64e1ac6
@ -101,7 +101,7 @@ main(void)
|
||||
{
|
||||
// * log -> welcome
|
||||
#if !SILENT_MODE
|
||||
printf(":: C bytebeat generator runtime unit\n");
|
||||
puts(":: C bytebeat generator runtime unit");
|
||||
fflush(stdout);
|
||||
#endif
|
||||
|
||||
@ -139,11 +139,11 @@ main(void)
|
||||
if (samples > 0)
|
||||
printf("%" PRIuMAX " samples", samples);
|
||||
|
||||
printf(
|
||||
puts(
|
||||
#if VERBOSE_MODE || SEQUENTIAL_MODE
|
||||
"\n"
|
||||
#endif
|
||||
"\n"
|
||||
""
|
||||
);
|
||||
|
||||
fflush(stdout);
|
||||
@ -152,7 +152,7 @@ main(void)
|
||||
// * write WAVE headers
|
||||
// 0. log
|
||||
#if SEQUENTIAL_MODE
|
||||
printf("Writing WAVE headers...\n");
|
||||
puts("Writing WAVE headers...");
|
||||
#endif
|
||||
|
||||
// 1. open file
|
||||
@ -314,11 +314,11 @@ main(void)
|
||||
#if SEQUENTIAL_MODE
|
||||
if (seq == 0)
|
||||
#endif
|
||||
printf(
|
||||
puts(
|
||||
#if !SEQUENTIAL_MODE
|
||||
"\n"
|
||||
#endif
|
||||
"Writing out file " OUTPUT_FILE "...\n");
|
||||
"Writing out file " OUTPUT_FILE "...");
|
||||
#endif
|
||||
fflush(stdout);
|
||||
#endif
|
||||
@ -347,11 +347,11 @@ main(void)
|
||||
|
||||
// * end of program
|
||||
#if !SILENT_MODE
|
||||
printf(
|
||||
puts(
|
||||
#if SEQUENTIAL_MODE && VERBOSE_MODE
|
||||
"\n"
|
||||
""
|
||||
#endif
|
||||
"Done!\n");
|
||||
"Done!");
|
||||
#endif
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
|
Loading…
Reference in New Issue
Block a user