svn commit: r185115 - head/usr.sbin/dumpcis
Warner Losh
imp at FreeBSD.org
Wed Nov 19 19:34:36 PST 2008
Author: imp
Date: Thu Nov 20 03:34:36 2008
New Revision: 185115
URL: http://svn.freebsd.org/changeset/base/185115
Log:
dump() really is unused, so retire it.
Modified:
head/usr.sbin/dumpcis/main.c
head/usr.sbin/dumpcis/readcis.c
head/usr.sbin/dumpcis/readcis.h
Modified: head/usr.sbin/dumpcis/main.c
==============================================================================
--- head/usr.sbin/dumpcis/main.c Thu Nov 20 03:30:27 2008 (r185114)
+++ head/usr.sbin/dumpcis/main.c Thu Nov 20 03:34:36 2008 (r185115)
@@ -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)
{
Modified: head/usr.sbin/dumpcis/readcis.c
==============================================================================
--- head/usr.sbin/dumpcis/readcis.c Thu Nov 20 03:30:27 2008 (r185114)
+++ head/usr.sbin/dumpcis/readcis.c Thu Nov 20 03:34:36 2008 (r185115)
@@ -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);
Modified: head/usr.sbin/dumpcis/readcis.h
==============================================================================
--- head/usr.sbin/dumpcis/readcis.h Thu Nov 20 03:30:27 2008 (r185114)
+++ head/usr.sbin/dumpcis/readcis.h Thu Nov 20 03:34:36 2008 (r185115)
@@ -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);
More information about the svn-src-head
mailing list