restore address length before printing.
This commit is contained in:
parent
14ccb7c1cc
commit
7d0f8c792d
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: conf.c,v 1.21 2015/06/02 14:02:10 christos Exp $ */
|
/* $NetBSD: conf.c,v 1.22 2015/06/02 20:52:00 christos Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2015 The NetBSD Foundation, Inc.
|
* Copyright (c) 2015 The NetBSD Foundation, Inc.
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__RCSID("$NetBSD: conf.c,v 1.21 2015/06/02 14:02:10 christos Exp $");
|
__RCSID("$NetBSD: conf.c,v 1.22 2015/06/02 20:52:00 christos Exp $");
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -488,6 +488,7 @@ conf_amask_eq(const void *v1, const void *v2, size_t len, int mask)
|
||||||
out:
|
out:
|
||||||
if (debug > 1) {
|
if (debug > 1) {
|
||||||
char b1[256], b2[256];
|
char b1[256], b2[256];
|
||||||
|
len <<= 2;
|
||||||
hexdump(b1, sizeof(b1), "a1", v1, len);
|
hexdump(b1, sizeof(b1), "a1", v1, len);
|
||||||
hexdump(b2, sizeof(b2), "a1", v2, len);
|
hexdump(b2, sizeof(b2), "a1", v2, len);
|
||||||
(*lfun)(LOG_DEBUG, "%s: %s != %s [0x%x]", __func__,
|
(*lfun)(LOG_DEBUG, "%s: %s != %s [0x%x]", __func__,
|
||||||
|
|
Loading…
Reference in New Issue