diff options
author | Joseph Herlant <aerostitch@users.noreply.github.com> | 2018-04-26 10:12:26 -0700 |
---|---|---|
committer | jkoan <jkoan@users.noreply.github.com> | 2018-04-26 19:12:26 +0200 |
commit | 221f783ea1caaaab2f5ceadc6b0fb3e720aac3df (patch) | |
tree | 1ecf89faa1dfa550477669b05ef5c36e9864f68a /navit/projection.c | |
parent | 011bb15468b4cb626e9facecba924b04bd494d7f (diff) | |
download | navit-221f783ea1caaaab2f5ceadc6b0fb3e720aac3df.tar.gz |
Fix:debug:Change line separators for dbg to work also on win* platform (#546)
* Fix:debug:Change line separators for dbg to work also on win* platform
* Fix:debug:Break multiline dbg statements to use the new model
* Fix:debug:Move the EOL into debug_vprintf
Diffstat (limited to 'navit/projection.c')
-rw-r--r-- | navit/projection.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/navit/projection.c b/navit/projection.c index d916689ee..3c9a7810a 100644 --- a/navit/projection.c +++ b/navit/projection.c @@ -77,20 +77,20 @@ projection_from_name(const char *name, struct coord *utm_offset) if (sscanf(name,"utmref%d%c%c%c",&zone,&zone_field,&square_x,&square_y)) { i=utmref_letter(zone_field); if (i < 2 || i > 21) { - dbg(lvl_error,"invalid zone field '%c' in '%s'\n",zone_field,name); + dbg(lvl_error,"invalid zone field '%c' in '%s'",zone_field,name); return projection_none; } i-=12; - dbg(lvl_debug,"zone_field %d\n",i); + dbg(lvl_debug,"zone_field %d",i); baserow=i*887.6/100; utm_offset->x=zone*1000000; i=utmref_letter(square_x); utm_offset->x+=((i%8)+1)*100000; i=utmref_letter(square_y); - dbg(lvl_debug,"baserow %d\n",baserow); + dbg(lvl_debug,"baserow %d",baserow); if (!(zone % 2)) i-=5; - dbg(lvl_debug,"i=%d\n",i); + dbg(lvl_debug,"i=%d",i); i=(i-baserow+100)%20+baserow; utm_offset->y=i*100000; return projection_utm; |