diff --git a/lib/system/async-dns/async-dns-parse.c b/lib/system/async-dns/async-dns-parse.c index bbfed3451..00f53f2d1 100644 --- a/lib/system/async-dns/async-dns-parse.c +++ b/lib/system/async-dns/async-dns-parse.c @@ -76,8 +76,8 @@ again1: ll = *ls++; if (ls + ll + 1 > e) { - lwsl_notice("%s: label len invalid, %ld vs %ld\n", __func__, - (ls + ll + 1) - pkt, e - pkt); + lwsl_notice("%s: label len invalid, %d vs %d\n", __func__, + lws_ptr_diff((ls + ll + 1), pkt), lws_ptr_diff(e, pkt)); return -1; }