Skip to content

Commit c3fba4a

Browse files
Fixing errors
1 parent 1693320 commit c3fba4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

print-geonet.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,9 @@ static const char* process_gn_addr(netdissect_options *ndo, u_int64_t gn_addr){
312312
u_int64_t mib = gn_addr & 0xFFFFFFFFFFFF; // 48 bits
313313
static char buffer[128];
314314
if (ndo->ndo_vflag >= 1){
315-
sprintf(buffer, "[m:%u st:%s reserved:%u mib:0x%llx]", m, st_text_from_bytes(st), reserved, mib);
315+
sprintf(buffer, "[m:%u st:%s reserved:%u mib:0x%llx]", m, st_text_from_bytes(st), reserved, (unsigned long long)mib);
316316
}else{
317-
sprintf(buffer, "0x%llx", mib);
317+
sprintf(buffer, "0x%llx", (unsigned long long)mib);
318318
}
319319

320320
return buffer;

0 commit comments

Comments
 (0)