aboutsummaryrefslogtreecommitdiff
path: root/src/pj_init.c
diff options
context:
space:
mode:
authorKurt Schwehr <schwehr@google.com>2018-03-20 15:11:27 -0700
committerKurt Schwehr <schwehr@google.com>2018-03-20 15:11:27 -0700
commit573bc5493dd2636b373d5fdd68b0795e9c2460f5 (patch)
tree1ec7c9377174fe9ab6fe7ae4b32e5afd605a55fc /src/pj_init.c
parent50c80eceb7d61bbc0a2c8e5909ee54e0051c3d96 (diff)
downloadPROJ-573bc5493dd2636b373d5fdd68b0795e9c2460f5.tar.gz
PROJ-573bc5493dd2636b373d5fdd68b0795e9c2460f5.zip
Remove final \n from pj_log messages.
There was a mix of pj_log calls with and without a trailing newline. pj_stderr_logger already adds a newline to the end of each msg, so pj_log calls don't need their own.
Diffstat (limited to 'src/pj_init.c')
-rw-r--r--src/pj_init.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pj_init.c b/src/pj_init.c
index e5b1441a..d007f0ae 100644
--- a/src/pj_init.c
+++ b/src/pj_init.c
@@ -126,7 +126,7 @@ static char *get_init_string (PJ_CONTEXT *ctx, char *name) {
*section = 0;
section++;
n = strlen (section);
- pj_log (ctx, 3, "get_init_string: searching for section [%s] in init file [%s]\n", section, fname);
+ pj_log (ctx, 3, "get_init_string: searching for section [%s] in init file [%s]", section, fname);
fid = pj_open_lib (ctx, fname, "rt");
if (0==fid) {
@@ -216,7 +216,7 @@ static char *get_init_string (PJ_CONTEXT *ctx, char *name) {
if (0==buffer)
return 0;
pj_shrink (buffer);
- pj_log (ctx, 3, "key=%s, value: [%s]\n", key, buffer);
+ pj_log (ctx, 3, "key=%s, value: [%s]", key, buffer);
return buffer;
}
@@ -236,7 +236,7 @@ Expand key from buffer or (if not in buffer) from init file
xkey = key;
else
xkey += 5;
- pj_log (ctx, 3, "get_init: searching cache for key: [%s]\n", xkey);
+ pj_log (ctx, 3, "get_init: searching cache for key: [%s]", xkey);
/* Is file/key pair already in cache? */
init_items = pj_search_initcache (xkey);
@@ -244,13 +244,13 @@ Expand key from buffer or (if not in buffer) from init file
return init_items;
/* If not, we must read it from file */
- pj_log (ctx, 3, "get_init: searching on in init files for [%s]\n", xkey);
+ pj_log (ctx, 3, "get_init: searching on in init files for [%s]", xkey);
definition = get_init_string (ctx, xkey);
if (0==definition)
return 0;
init_items = string_to_paralist (ctx, definition);
if (init_items)
- pj_log (ctx, 3, "get_init: got [%s], paralist[0,1]: [%s,%s]\n", definition, init_items->param, init_items->next? init_items->next->param: "(empty)");
+ pj_log (ctx, 3, "get_init: got [%s], paralist[0,1]: [%s,%s]", definition, init_items->param, init_items->next? init_items->next->param: "(empty)");
pj_dealloc (definition);
if (0==init_items)
return 0;