From: tsteven4 <13596209+tsteven4@users.noreply.github.com> Date: Sat, 9 Sep 2023 12:59:44 +0000 (-0600) Subject: don't use posix but non-iso argument reordering in print specifiers. X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~1^2~9^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=056749a1c2e1d931e4964d8e383d9ea6a7ff3660;p=gpsbabel.git don't use posix but non-iso argument reordering in print specifiers. --- diff --git a/garmin_gpi.cc b/garmin_gpi.cc index 793c3c117..340c823be 100644 --- a/garmin_gpi.cc +++ b/garmin_gpi.cc @@ -235,7 +235,7 @@ GarminGPIFormat::read_poi(const int sz, const int tag) len = gbfgetint32(fin); /* sub-header size */ } if (GPI_DBG) { - warning("poi sublen = %1$d (0x%1$x)\n", len); + warning("poi sublen = %d (0x%x)\n", len, len); } (void) len; int pos = gbftell(fin); @@ -279,12 +279,12 @@ GarminGPIFormat::read_poi_list(const int sz) int pos = gbftell(fin); if (GPI_DBG) { PP; - warning("> reading poi list (-> %1$x / %1$d )\n", pos + sz); + warning("> reading poi list (-> %x / %d )\n", pos + sz, pos + sz); } PP; int i = gbfgetint32(fin); /* mostly 23 (0x17) */ if (GPI_DBG) { - warning("list sublen = %1$d (0x%1$x)\n", i); + warning("list sublen = %d (0x%x)\n", i, i); } (void) i; @@ -317,7 +317,7 @@ GarminGPIFormat::read_poi_group(const int sz, const int tag) int pos = gbftell(fin); if (GPI_DBG) { PP; - warning("> reading poi group (-> %1$x / %1$d)\n", pos + sz); + warning("> reading poi group (-> %x / %d)\n", pos + sz, pos + sz); } if (tag == 0x80009) { PP;