diff th_network.c @ 395:bffd3caf2d2c

Rename TH_PRI{u,d,x}* macros to match with standard ISO C99 inttypes.h PRI*. This breaks the API again. Hooray.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 03 Mar 2016 14:13:31 +0200
parents cc5411cb85de
children f8ea8e833f48
line wrap: on
line diff
--- a/th_network.c	Thu Mar 03 14:11:57 2016 +0200
+++ b/th_network.c	Thu Mar 03 14:13:31 2016 +0200
@@ -942,8 +942,8 @@
     
     fprintf(f,
     "\n--------------------------------------------------------------\n"
-    "err=%d, status=%d, got_bytes=%" TH_PRIu_SIZE_T ", total_bytes=%" TH_PRIu_SIZE_T "\n"
-    "buf=0x%p, in_ptr=0x%04" TH_PRIx_SIZE_T ", ptr=0x%04" TH_PRIx_SIZE_T "\n",
+    "err=%d, status=%d, got_bytes=%" PRIu_SIZE_T ", total_bytes=%" PRIu_SIZE_T "\n"
+    "buf=0x%p, in_ptr=0x%04" PRIx_SIZE_T ", ptr=0x%04" PRIx_SIZE_T "\n",
     conn->err, conn->status, conn->base.got_bytes, conn->base.total_bytes,
     conn->base.buf, conn->base.in_ptr - conn->base.buf, conn->base.ptr - conn->base.buf);
     
@@ -955,7 +955,7 @@
         left -= amount;
 
         // Dump offs | xx xx xx xx | and fill string
-        fprintf(f, "%04" TH_PRIx_SIZE_T " | ", offs);
+        fprintf(f, "%04" PRIx_SIZE_T " | ", offs);
         for (bufoffs = 0; bufoffs < amount; offs++, bufoffs++, p++)
         {
             fprintf(f, "%02x ", *p);