| 99 | // and does not append a newline. |
| 100 | |
| 101 | void lputs(const char* s) |
| 102 | { |
| 103 | printf("%s", s); |
| 104 | fflush(stdout); // flush so if there is a crash we can see what happened |
| 105 | logprintf("%s", s); |
| 106 | } |
| 107 | |
| 108 | // Print message only once on the screen, and only 100 times to the log file. |
| 109 | // This is used when similar messages could be printed many times and it |
no test coverage detected