diff --git a/third_party/lua/lrepl.c b/third_party/lua/lrepl.c index 3312918e9..c2253c129 100644 --- a/third_party/lua/lrepl.c +++ b/third_party/lua/lrepl.c @@ -335,7 +335,7 @@ void lua_initrepl(lua_State *L) { prompt = get_prompt(L, 1); if ((g_historypath = linenoiseGetHistoryPath(lua_progname))) { if (linenoiseHistoryLoad(g_historypath) == -1) { - fprintf(stderr, "%r%s: failed to load history: %m%n", g_historypath); + fprintf(stderr, "%r%s: failed to load history: %m\n", g_historypath); free(g_historypath); g_historypath = 0; } diff --git a/tool/viz/rlimit.c b/tool/viz/rlimit.c index e4b4e4ae9..cc7821c3c 100644 --- a/tool/viz/rlimit.c +++ b/tool/viz/rlimit.c @@ -43,7 +43,7 @@ static void SetLimit(int resource, uint64_t soft, uint64_t hard) { return; } } - fprintf(stderr, "ERROR: SETRLIMIT(%s, %,ld, %,ld) FAILED %m%n", + fprintf(stderr, "ERROR: SETRLIMIT(%s, %,ld, %,ld) FAILED %m\n", DescribeRlimitName(resource), soft, hard); exit(1); }