[Groonga-commit] groonga/groonga at 92474e1 [master] groonga: add a missing new line for error message

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Dec 11 00:15:55 JST 2014


Kouhei Sutou	2014-12-11 00:15:55 +0900 (Thu, 11 Dec 2014)

  New Revision: 92474e132487a2a7ee69c7d7a4f336e7fa2f5490
  https://github.com/groonga/groonga/commit/92474e132487a2a7ee69c7d7a4f336e7fa2f5490

  Message:
    groonga: add a missing new line for error message

  Modified files:
    src/groonga.c

  Modified: src/groonga.c (+2 -2)
===================================================================
--- src/groonga.c    2014-12-11 00:01:54 +0900 (4430109)
+++ src/groonga.c    2014-12-11 00:15:55 +0900 (3805f2e)
@@ -318,7 +318,7 @@ do_alone(int argc, char **argv)
       grn_rc rc;
       rc = grn_db_recover(ctx, db);
       if (rc != GRN_SUCCESS) {
-        fprintf(stderr, "Failed to recover database <%s>: %s",
+        fprintf(stderr, "Failed to recover database <%s>: %s\n",
                 path, ctx->errbuf);
         exit_code = grn_rc_to_exit_code(ctx->rc);
         grn_obj_close(ctx, db);
@@ -643,7 +643,7 @@ start_service(grn_ctx *ctx, const char *db_path,
         rc = grn_db_recover(ctx, db);
       }
       if (rc != GRN_SUCCESS) {
-        fprintf(stderr, "Failed to recover database <%s>: %s",
+        fprintf(stderr, "Failed to recover database <%s>: %s\n",
                 db_path, ctx->errbuf);
         exit_code = grn_rc_to_exit_code(ctx->rc);
       } else {
-------------- next part --------------
HTML����������������������������...
다운로드 



More information about the Groonga-commit mailing list
Back to archive index