restore address length before printing.

This commit is contained in:
christos 2015-06-02 20:52:00 +00:00
parent 14ccb7c1cc
commit 7d0f8c792d
1 changed files with 3 additions and 2 deletions

View File

@ -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.
@ -33,7 +33,7 @@
#endif
#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 <string.h>
@ -488,6 +488,7 @@ conf_amask_eq(const void *v1, const void *v2, size_t len, int mask)
out:
if (debug > 1) {
char b1[256], b2[256];
len <<= 2;
hexdump(b1, sizeof(b1), "a1", v1, len);
hexdump(b2, sizeof(b2), "a1", v2, len);
(*lfun)(LOG_DEBUG, "%s: %s != %s [0x%x]", __func__,