Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/iscsi drop unused debug helper routine
details: https://anonhg.NetBSD.org/src/rev/1d6c3d49c022
branches: trunk
changeset: 345906:1d6c3d49c022
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Wed Jun 15 03:51:55 2016 +0000
description:
drop unused debug helper routine
diffstat:
sys/dev/iscsi/iscsi_globals.h | 4 +---
sys/dev/iscsi/iscsi_utils.c | 21 +--------------------
2 files changed, 2 insertions(+), 23 deletions(-)
diffs (60 lines):
diff -r b68b92c5862e -r 1d6c3d49c022 sys/dev/iscsi/iscsi_globals.h
--- a/sys/dev/iscsi/iscsi_globals.h Wed Jun 15 03:40:59 2016 +0000
+++ b/sys/dev/iscsi/iscsi_globals.h Wed Jun 15 03:51:55 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iscsi_globals.h,v 1.19 2016/06/05 05:36:57 mlelstv Exp $ */
+/* $NetBSD: iscsi_globals.h,v 1.20 2016/06/15 03:51:55 mlelstv Exp $ */
/*-
* Copyright (c) 2004,2005,2006,2011 The NetBSD Foundation, Inc.
@@ -544,7 +544,6 @@
#define DEBC(conn,lev,x) { if (iscsi_debug_level >= lev) { printf("S%dC%d: ", \
conn ? conn->session->id : -1, \
conn ? conn->id : -1); printf x ;}}
-void iscsi_hexdump(void *buf, int len);
#define STATIC static
@@ -553,7 +552,6 @@
#define DEBOUT(x)
#define DEB(lev,x)
#define DEBC(conn,lev,x)
-#define iscsi_hexdump(a,b)
#define STATIC static
diff -r b68b92c5862e -r 1d6c3d49c022 sys/dev/iscsi/iscsi_utils.c
--- a/sys/dev/iscsi/iscsi_utils.c Wed Jun 15 03:40:59 2016 +0000
+++ b/sys/dev/iscsi/iscsi_utils.c Wed Jun 15 03:51:55 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iscsi_utils.c,v 1.19 2016/06/05 13:54:28 mlelstv Exp $ */
+/* $NetBSD: iscsi_utils.c,v 1.20 2016/06/15 03:51:55 mlelstv Exp $ */
/*-
* Copyright (c) 2004,2005,2006,2008 The NetBSD Foundation, Inc.
@@ -37,25 +37,6 @@
#include <sys/atomic.h>
-#ifdef ISCSI_DEBUG
-
-/* debug helper routine */
-void
-iscsi_hexdump(void *buff, int len)
-{
- uint8_t *bp = (uint8_t *) buff;
- int i;
-
- while (len > 0) {
- for (i = min(16, len); i > 0; i--)
- printf("%02x ", *bp++);
- printf("\n");
- len -= 16;
- }
-}
-
-#endif
-
/*****************************************************************************
* Digest functions
*****************************************************************************/
Home |
Main Index |
Thread Index |
Old Index