summaryrefslogtreecommitdiff
path: root/usr.sbin/dumpcis
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2008-11-20 03:34:36 +0000
committerWarner Losh <imp@FreeBSD.org>2008-11-20 03:34:36 +0000
commit199493b9177aaa78273d175ddbe38e906ff8f7c5 (patch)
tree88ec0c5bf6f693d6d4a54de81cdb43f33beaeab8 /usr.sbin/dumpcis
parent2bbc3fd5f68b12631ad0ed45db284073c7d4512f (diff)
downloadsrc-test-199493b9177aaa78273d175ddbe38e906ff8f7c5.tar.gz
src-test-199493b9177aaa78273d175ddbe38e906ff8f7c5.zip
dump() really is unused, so retire it.
Notes
Notes: svn path=/head/; revision=185115
Diffstat (limited to 'usr.sbin/dumpcis')
-rw-r--r--usr.sbin/dumpcis/main.c16
-rw-r--r--usr.sbin/dumpcis/readcis.c5
-rw-r--r--usr.sbin/dumpcis/readcis.h2
3 files changed, 0 insertions, 23 deletions
diff --git a/usr.sbin/dumpcis/main.c b/usr.sbin/dumpcis/main.c
index d721b0af65ac7..291f777f0340e 100644
--- a/usr.sbin/dumpcis/main.c
+++ b/usr.sbin/dumpcis/main.c
@@ -30,22 +30,6 @@ __FBSDID("$FreeBSD$");
#include <unistd.h>
#include "readcis.h"
-void
-dump(unsigned char *p, int sz)
-{
- int ad = 0, i;
-
- while (sz > 0) {
- printf("%03x: ", ad);
- for (i = 0; i < ((sz < 16) ? sz : 16); i++)
- printf(" %02x", p[i]);
- printf("\n");
- sz -= 16;
- p += 16;
- ad += 16;
- }
-}
-
static void
scanfile(char *name)
{
diff --git a/usr.sbin/dumpcis/readcis.c b/usr.sbin/dumpcis/readcis.c
index 850d6431ee485..8900446d6260d 100644
--- a/usr.sbin/dumpcis/readcis.c
+++ b/usr.sbin/dumpcis/readcis.c
@@ -99,7 +99,6 @@ static struct tuple_info tuple_info[] = {
{0, 0, 0}
};
-
static void *
xmalloc(int sz)
{
@@ -131,10 +130,6 @@ readcis(int fd)
for (tl = cp->tlist; tl; tl = tl->next)
for (tp = tl->tuples; tp; tp = tp->next) {
-#if 0
- printf("tuple code = 0x%02x, data is\n", tp->code);
- dump(tp->data, tp->length);
-#endif
switch (tp->code) {
case CIS_MEM_COMMON: /* 0x01 */
device_desc(tp->data, tp->length, &cp->common_mem);
diff --git a/usr.sbin/dumpcis/readcis.h b/usr.sbin/dumpcis/readcis.h
index 4551c9e503a59..9dde6306bc126 100644
--- a/usr.sbin/dumpcis/readcis.h
+++ b/usr.sbin/dumpcis/readcis.h
@@ -136,8 +136,6 @@ struct cis {
(*((tp) + 1) << 8) | *(tp))
#define tpl16(tp) ((*((tp) + 1) << 8) | *(tp))
-int dumpcisfile_main(int, char **);
-void dump(unsigned char *, int);
void dumpcis(struct cis *);
void freecis(struct cis *);
struct cis *readcis(int);