remove debug output

This commit is contained in:
Markus Fröschle
2016-09-27 04:37:42 +00:00
parent 5edcc93e3f
commit 891f26433e
2 changed files with 3 additions and 15 deletions

View File

@@ -2185,14 +2185,6 @@ int32_t radeonfb_pci_register(int32_t handle, const struct pci_device_id *ent)
rinfo->big_endian = 1; /* radeon make swapping intel -> motorola */ rinfo->big_endian = 1; /* radeon make swapping intel -> motorola */
dbg("host bridge is little endian\r\n"); dbg("host bridge is little endian\r\n");
} }
xprintf("framebuffer dump:\r\n");
hexdump((uint8_t *) rinfo->fb_base_phys, 0x10);
xprintf("change framebuffer contents\r\n");
* (uint32_t *) rinfo->fb_base_phys = 0x01234567;
* (uint32_t *) (rinfo->fb_base_phys + 8) = 0x89abcdef;
hexdump((uint8_t *) rinfo->fb_base_phys, 0x10);
} }
else if ((pci_rsc_desc->length >= RADEON_REGSIZE) && (pci_rsc_desc->length < 0x100000)) else if ((pci_rsc_desc->length >= RADEON_REGSIZE) && (pci_rsc_desc->length < 0x100000))
{ {
@@ -2213,8 +2205,6 @@ int32_t radeonfb_pci_register(int32_t handle, const struct pci_device_id *ent)
{ {
dbg("rinfo->bios_seg[0] (%p) was %x (expected 0xaa55)\r\n", dbg("rinfo->bios_seg[0] (%p) was %x (expected 0xaa55)\r\n",
rinfo->bios_seg_phys, * (uint16_t *) rinfo->bios_seg_phys); rinfo->bios_seg_phys, * (uint16_t *) rinfo->bios_seg_phys);
xprintf("bios_seg_phys dump:\r\n");
hexdump((uint8_t *) rinfo->bios_seg_phys, 0x100);
rinfo->bios_seg_phys = 0; rinfo->bios_seg_phys = 0;
} }
@@ -2227,8 +2217,6 @@ int32_t radeonfb_pci_register(int32_t handle, const struct pci_device_id *ent)
rinfo->mmio_base = (void *)(pci_rsc_desc->offset + pci_rsc_desc->start); rinfo->mmio_base = (void *)(pci_rsc_desc->offset + pci_rsc_desc->start);
rinfo->mmio_base_phys = pci_rsc_desc->start; rinfo->mmio_base_phys = pci_rsc_desc->start;
xprintf("mmio_base dump:\r\n");
hexdump((uint8_t *) rinfo->mmio_base_phys, 0x100);
} }
} }
} }
@@ -2240,8 +2228,6 @@ int32_t radeonfb_pci_register(int32_t handle, const struct pci_device_id *ent)
rinfo->io_base = (void *)(pci_rsc_desc->offset + pci_rsc_desc->start); rinfo->io_base = (void *)(pci_rsc_desc->offset + pci_rsc_desc->start);
rinfo->io_base_phys = pci_rsc_desc->start; rinfo->io_base_phys = pci_rsc_desc->start;
xprintf("io_base dump:\r\n");
hexdump((uint8_t *) rinfo->io_base_phys, 0x100);
} }
} }
flags = pci_rsc_desc->flags; flags = pci_rsc_desc->flags;

View File

@@ -7,7 +7,7 @@
#include "fb.h" #include "fb.h"
#include "radeonfb.h" #include "radeonfb.h"
#define DBG_VIDEO // #define DBG_VIDEO
#ifdef DBG_VIDEO #ifdef DBG_VIDEO
#define dbg(format, arg...) do { xprintf("DEBUG (%s()): " format, __FUNCTION__, ##arg);} while(0) #define dbg(format, arg...) do { xprintf("DEBUG (%s()): " format, __FUNCTION__, ##arg);} while(0)
#else #else
@@ -344,6 +344,7 @@ void video_init(void)
radeon_found = true; radeon_found = true;
dbg("matched\r\n"); dbg("matched\r\n");
#if 0
if (radeonfb_pci_register(handle, board) >= 0) if (radeonfb_pci_register(handle, board) >= 0)
{ {
xprintf("RADEON video card found and registered\r\n"); xprintf("RADEON video card found and registered\r\n");
@@ -352,6 +353,7 @@ void video_init(void)
{ {
dbg("failed to register RADEON PCI video card\r\n"); dbg("failed to register RADEON PCI video card\r\n");
} }
#endif
return; return;
} }
board++; board++;