summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 288bac3)
raw | patch | inline | side by side (parent: 288bac3)
author | Florian Forster <sifnfors@stud.informatik.uni-erlangen.de> | |
Fri, 17 Jul 2009 12:32:56 +0000 (14:32 +0200) | ||
committer | Florian Forster <sifnfors@stud.informatik.uni-erlangen.de> | |
Fri, 17 Jul 2009 12:32:56 +0000 (14:32 +0200) |
src/liboping.c | patch | blob | history |
diff --git a/src/liboping.c b/src/liboping.c
index 87aa654eb6b7f4fc21f2218caac6a9573d12cf02..b21188b21abc9fc0654396f26a619e124bafdb9c 100644 (file)
--- a/src/liboping.c
+++ b/src/liboping.c
if (recv_checksum != calc_checksum)
{
- dprintf ("Checksum missmatch: Got 0x%04x, calculated 0x%04x\n",
+ dprintf ("Checksum missmatch: Got 0x%04"PRIx16", "
+ "calculated 0x%04"PRIx16"\n",
recv_checksum, calc_checksum);
return (NULL);
}
if (((ptr->sequence - 1) & 0xFFFF) != seq)
continue;
- dprintf ("Match found: hostname = %s, ident = 0x%04x, seq = %i\n",
+ dprintf ("Match found: hostname = %s, ident = 0x%04"PRIx16", "
+ "seq = %"PRIu16"\n",
ptr->hostname, ident, seq);
break;
if (ptr == NULL)
{
- dprintf ("No match found for ident = 0x%04x, seq = %i\n",
+ dprintf ("No match found for ident = 0x%04"PRIx16", seq = %"PRIu16"\n",
ident, seq);
}
if (((ptr->sequence - 1) & 0xFFFF) != seq)
continue;
- dprintf ("Match found: hostname = %s, ident = 0x%04x, seq = %i\n",
+ dprintf ("Match found: hostname = %s, ident = 0x%04"PRIx16", "
+ "seq = %"PRIu16"\n",
ptr->hostname, ident, seq);
break;
if (ptr == NULL)
{
- dprintf ("No match found for ident = 0x%04x, seq = %i\n",
+ dprintf ("No match found for ident = 0x%04"PRIx16", "
+ "seq = %"PRIu16"\n",
ident, seq);
}