chiark
/
gitweb
/
~mdw
/
adns
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/addrfam.c (adns_addr2text): Don't print junk in debugging output.
[adns]
/
src
/
addrfam.c
diff --git
a/src/addrfam.c
b/src/addrfam.c
index a357f9e33bc737e861676bc14c37fe208e881030..8a49d5b0b14262d1881b548070eb5c58182d942e 100644
(file)
--- a/
src/addrfam.c
+++ b/
src/addrfam.c
@@
-411,7
+411,8
@@
int adns_addr2text(const struct sockaddr *sa, adns_queryflags flags,
assert(remain >= IF_NAMESIZE+1/*%*/);
*scopeptr++= '%'; remain--;
bool parsedname = 0;
assert(remain >= IF_NAMESIZE+1/*%*/);
*scopeptr++= '%'; remain--;
bool parsedname = 0;
- af_debug("will print scoped addr %s %% %"PRIu32"", buffer, scope);
+ af_debug("will print scoped addr `%.*s' %% %"PRIu32"",
+ scopeoffset,buffer, scope);
if (scope <= UINT_MAX /* so we can pass it to if_indextoname */
&& !(flags & adns_qf_addrlit_scope_numeric)
&& addrtext_scope_use_ifname(sa)) {
if (scope <= UINT_MAX /* so we can pass it to if_indextoname */
&& !(flags & adns_qf_addrlit_scope_numeric)
&& addrtext_scope_use_ifname(sa)) {