diff options
author | Jean Delvare <jdelvare@suse.de> | 2022-05-20 09:54:36 +0200 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2022-05-20 09:54:36 +0200 |
commit | 9060fb8f9d262cca1d44c683c81af4a1ca4c384a (patch) | |
tree | 985b29f185101d1d808fa5ce82c85d1372a74451 /dmidecode.h | |
parent | 7d079a38377d60c9906024d1330b2e6b9c2b9a51 (diff) | |
download | dmidecode-git-9060fb8f9d262cca1d44c683c81af4a1ca4c384a.tar.gz |
dmidecode: Make dmi_print_cpuid more flexible
Let the caller choose which printing helper function will be used.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Diffstat (limited to 'dmidecode.h')
-rw-r--r-- | dmidecode.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dmidecode.h b/dmidecode.h index e5bff31..f4022f9 100644 --- a/dmidecode.h +++ b/dmidecode.h @@ -45,6 +45,7 @@ enum cpuid_type int is_printable(const u8 *data, int len); const char *dmi_string(const struct dmi_header *dm, u8 s); void dmi_print_memory_size(const char *addr, u64 code, int shift); -void dmi_print_cpuid(const char *label, enum cpuid_type sig, const u8 *p); +void dmi_print_cpuid(void (*print_cb)(const char *name, const char *format, ...), + const char *label, enum cpuid_type sig, const u8 *p); #endif |