From ee4bb3f96eec3b21c1961d54fe45cb33dc402d00 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 27 Oct 2026 16:44:55 +0100 Subject: [PATCH] xfree86: int10: remove unused/obsolete dprint() Not used anymore, so no need to keep it around any longer. Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xfree86/int10/INT10.HOWTO | 8 -------- hw/xfree86/int10/helper_mem.c | 24 ------------------------ hw/xfree86/int10/xf86int10_priv.h | 3 --- 3 files changed, 35 deletions(-) diff --git a/hw/xfree86/int10/INT10.HOWTO b/hw/xfree86/int10/INT10.HOWTO index 5277380a95..52fd8112ee 100644 --- a/hw/xfree86/int10/INT10.HOWTO +++ b/hw/xfree86/int10/INT10.HOWTO @@ -286,14 +286,6 @@ the resulting register values back to the xf86Int10InfoRec structure should be called. -Functions to dump memory, code, xf86 CPU register values and stack are -also provided. Take a look at helper.c To view a memory range the -function - - void dprint(unsigned long start, unsigned long size) - -is provided. The use should be self explanatory. - Register and memory access functions are provided in helper_mem.c. The PIO register access functions can trap access to PCI config space access register (config method 1) if _PC is not defined. diff --git a/hw/xfree86/int10/helper_mem.c b/hw/xfree86/int10/helper_mem.c index 2936cd723f..8a9583f9a0 100644 --- a/hw/xfree86/int10/helper_mem.c +++ b/hw/xfree86/int10/helper_mem.c @@ -25,30 +25,6 @@ static const OptionInfoRec INT10Options[] = { {-1, NULL, OPTV_NONE, {0}, FALSE}, }; -#ifdef DEBUG -void -dprint(unsigned long start, unsigned long size) -{ - int i, j; - char *c = (char *) start; - - for (j = 0; j < (size >> 4); j++) { - char *d = c; - - ErrorF("\n0x%lx: ", (unsigned long) c); - for (i = 0; i < 16; i++) - ErrorF("%2.2x ", (unsigned char) (*(c++))); - c = d; - for (i = 0; i < 16; i++) { - ErrorF("%c", ((((CARD8) (*c)) > 32) && (((CARD8) (*c)) < 128)) ? - (unsigned char) (*(c)) : '.'); - c++; - } - } - ErrorF("\n"); -} -#endif - #ifndef _PC /* * here we are really paranoid about faking a "real" diff --git a/hw/xfree86/int10/xf86int10_priv.h b/hw/xfree86/int10/xf86int10_priv.h index 6b3eef3cd3..6d6eae8f42 100644 --- a/hw/xfree86/int10/xf86int10_priv.h +++ b/hw/xfree86/int10/xf86int10_priv.h @@ -89,9 +89,6 @@ Bool int10skip(const void *options); Bool int10_check_bios(int scrnIndex, int codeSeg, const unsigned char *vbiosMem); Bool initPrimary(const void *options); -#ifdef DEBUG -void dprint(unsigned long start, unsigned long size); -#endif /* OS dependent functions */ _X_EXPORT Bool MapCurrentInt10(xf86Int10InfoPtr pInt);