From 454bd73487bbabb1806bd09a38f4e0764f466fff Mon Sep 17 00:00:00 2001 From: XazZ Date: Sat, 5 Jul 2008 02:15:01 +0200 Subject: [PATCH] stupid fix for non-working printk-extension --- log.c | 12 ++++++++++++ pci.c | 2 ++ 2 files changed, 14 insertions(+) diff --git a/log.c b/log.c index 42cdf54..b38d39a 100644 --- a/log.c +++ b/log.c @@ -23,10 +23,22 @@ static void acx_dump_bytes(const char *prefix, const void *data, ssize_t len); +/* + * HACK for debugging: if ACX_LOG_LEVEL is set to 2, set all printk_prefixes to + * KERN_EMERG. + * + * After all, we want ACX_LOG_LEVEL to 2 for heavy debugging, so... + */ static const char *const printk_levels[MAX_LOG_LEVEL + 1] = { +#if ACX_LOG_LEVEL < 2 KERN_WARNING, KERN_INFO, KERN_DEBUG +#else + KERN_EMERG, + KERN_EMERG, + KERN_EMERG +#endif }; /* diff --git a/pci.c b/pci.c index 57f3053..86252e7 100644 --- a/pci.c +++ b/pci.c @@ -4470,6 +4470,8 @@ int __init acxpci_e_init_module(void) FN_ENTER; + printk(KERN_EMERG); + #if (ACX_IO_WIDTH==32) acx_log(LOG_INFO, L_ANY, "compiled to use 32bit I/O access. " "I/O timing issues might occur, such as " -- 2.11.4.GIT