X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=StdLib%2FBsdSocketLib%2Fns_print.c;h=ea29d018a5189098fbc963fa8314002cd5f22163;hb=2d675c1c8c9e43195bf32d5a34a54f962f35afca;hp=60ea89775f9ba1a69cf6b0119402d669ddd02247;hpb=0164fc8e76b6ca9023c893940ddb00ef0b6bee5a;p=mirror_edk2.git diff --git a/StdLib/BsdSocketLib/ns_print.c b/StdLib/BsdSocketLib/ns_print.c index 60ea89775f..ea29d018a5 100644 --- a/StdLib/BsdSocketLib/ns_print.c +++ b/StdLib/BsdSocketLib/ns_print.c @@ -228,7 +228,7 @@ ns_sprintrrf(const u_char *msg, size_t msglen, /* Serial number. */ t = ns_get32(rdata); rdata += NS_INT32SZ; T(addstr("\t\t\t\t\t", 5, &buf, &buflen)); - len = SPRINTF((tmp, "%lu", t)); + len = SPRINTF((tmp, "%lu", (unsigned long)t)); T(addstr(tmp, len, &buf, &buflen)); T(spaced = addtab(len, 16, spaced, &buf, &buflen)); T(addstr("; serial\n", 9, &buf, &buflen)); @@ -517,7 +517,7 @@ ns_sprintrrf(const u_char *msg, size_t msglen, labels = *rdata++; t = ns_get32(rdata); rdata += NS_INT32SZ; len = SPRINTF((tmp, " %s %d %lu ", - p_type((int)type), (int)algorithm, t)); + p_type((int)type), (int)algorithm, (unsigned long)t)); T(addstr(tmp, len, &buf, &buflen)); if (labels != (u_int)dn_count_labels(name)) goto formerr;