a01-arm-debugll-printk.patch 480 B

123456789101112131415161718192021222324
  1. --- a/kernel/printk.c
  2. +++ b/kernel/printk.c
  3. @@ -44,6 +44,10 @@
  4. #include <asm/uaccess.h>
  5. +#ifdef CONFIG_DEBUG_LL
  6. +extern void printascii(char *);
  7. +#endif /* CONFIG_DEBUG_LL */
  8. +
  9. /*
  10. * Architectures can override it:
  11. */
  12. @@ -900,6 +904,10 @@ asmlinkage int vprintk(const char *fmt,
  13. }
  14. }
  15. +#ifdef CONFIG_DEBUG_LL
  16. + printascii(printk_buf);
  17. +#endif
  18. +
  19. /*
  20. * Copy the output into log_buf. If the caller didn't provide
  21. * the appropriate log prefix, we insert them here