Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove final \n from pj_log messages. #878

Merged
merged 1 commit into from
Mar 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/nad_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ int nad_ctable_load( projCtx ctx, struct CTABLE *ct, PAFile fid )
ct->cvs = NULL;

pj_log( ctx, PJ_LOG_ERROR,
"ctable loading failed on fread() - binary incompatible?\n" );
"ctable loading failed on fread() - binary incompatible?" );
pj_ctx_set_errno( ctx, -38 );
return 0;
}
Expand Down
10 changes: 5 additions & 5 deletions src/pj_gridinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ static int pj_gridinfo_init_ntv2( projCtx ctx, PAFile fid, PJ_GRIDINFO *gilist )
ct->lim.phi = (pj_int32) (fabs(ur.phi-ct->ll.phi)/ct->del.phi + 0.5) + 1;

pj_log( ctx, PJ_LOG_DEBUG_MINOR,
"NTv2 %s %dx%d: LL=(%.9g,%.9g) UR=(%.9g,%.9g)\n",
"NTv2 %s %dx%d: LL=(%.9g,%.9g) UR=(%.9g,%.9g)",
ct->id,
ct->lim.lam, ct->lim.phi,
ct->ll.lam/3600.0, ct->ll.phi/3600.0,
Expand All @@ -551,7 +551,7 @@ static int pj_gridinfo_init_ntv2( projCtx ctx, PAFile fid, PJ_GRIDINFO *gilist )
if( gs_count != ct->lim.lam * ct->lim.phi )
{
pj_log( ctx, PJ_LOG_ERROR,
"GS_COUNT(%d) does not match expected cells (%dx%d=%d)\n",
"GS_COUNT(%d) does not match expected cells (%dx%d=%d)",
gs_count, ct->lim.lam, ct->lim.phi,
ct->lim.lam * ct->lim.phi );
pj_dalloc(ct);
Expand Down Expand Up @@ -618,7 +618,7 @@ static int pj_gridinfo_init_ntv2( projCtx ctx, PAFile fid, PJ_GRIDINFO *gilist )
{
pj_log( ctx, PJ_LOG_ERROR,
"pj_gridinfo_init_ntv2(): "
"failed to find parent %8.8s for %s.\n",
"failed to find parent %8.8s for %s.",
(const char *) header+24, gi->ct->id );

for( lnk = gilist; lnk->next != NULL; lnk = lnk->next ) {}
Expand Down Expand Up @@ -943,7 +943,7 @@ PJ_GRIDINFO *pj_gridinfo_init( projCtx ctx, const char *gridname )
gilist->ct = ct;

pj_log( ctx, PJ_LOG_DEBUG_MAJOR,
"Ctable2 %s %dx%d: LL=(%.9g,%.9g) UR=(%.9g,%.9g)\n",
"Ctable2 %s %dx%d: LL=(%.9g,%.9g) UR=(%.9g,%.9g)",
ct->id,
ct->lim.lam, ct->lim.phi,
ct->ll.lam * RAD_TO_DEG, ct->ll.phi * RAD_TO_DEG,
Expand All @@ -964,7 +964,7 @@ PJ_GRIDINFO *pj_gridinfo_init( projCtx ctx, const char *gridname )
gilist->ct = ct;

pj_log( ctx, PJ_LOG_DEBUG_MAJOR,
"Ctable %s %dx%d: LL=(%.9g,%.9g) UR=(%.9g,%.9g)\n",
"Ctable %s %dx%d: LL=(%.9g,%.9g) UR=(%.9g,%.9g)",
ct->id,
ct->lim.lam, ct->lim.phi,
ct->ll.lam * RAD_TO_DEG, ct->ll.phi * RAD_TO_DEG,
Expand Down
10 changes: 5 additions & 5 deletions src/pj_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
}

Expand All @@ -236,21 +236,21 @@ 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);
if (init_items)
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;
Expand Down
2 changes: 1 addition & 1 deletion src/pj_open_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ pj_open_lib_ex(projCtx ctx, const char *name, const char *mode,
pj_ctx_set_errno( ctx, errno );

pj_log( ctx, PJ_LOG_DEBUG_MAJOR,
"pj_open_lib(%s): call fopen(%s) - %s\n",
"pj_open_lib(%s): call fopen(%s) - %s",
name, sysname,
fid == NULL ? "failed" : "succeeded" );

Expand Down