diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/sbi/sbi_console.h | 4 | ||||
| -rw-r--r-- | include/sbi/sbi_scratch.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/sbi/sbi_console.h b/include/sbi/sbi_console.h index 16021d06..45af22f3 100644 --- a/include/sbi/sbi_console.h +++ b/include/sbi/sbi_console.h @@ -31,6 +31,10 @@ int __printf(3, 4) sbi_snprintf(char *out, u32 out_sz, const char *format, ...); int __printf(1, 2) sbi_printf(const char *format, ...); struct sbi_scratch; + +int __printf(2, 3) sbi_dprintf(struct sbi_scratch *scratch, + const char *format, ...); + int sbi_console_init(struct sbi_scratch *scratch); #endif diff --git a/include/sbi/sbi_scratch.h b/include/sbi/sbi_scratch.h index 46ea38f1..fd18bb24 100644 --- a/include/sbi/sbi_scratch.h +++ b/include/sbi/sbi_scratch.h @@ -74,6 +74,8 @@ struct sbi_scratch { enum sbi_scratch_options { /** Disable prints during boot */ SBI_SCRATCH_NO_BOOT_PRINTS = (1 << 0), + /** Enable runtime debug prints */ + SBI_SCRATCH_DEBUG_PRINTS = (1 << 1), }; /** Get pointer to sbi_scratch for current HART */ |
