Make dmi_print_memory_size() global so that it can be called from outside of dmidecode.c
Signed-off-by: Jerry Hoemann <jerry.hoem...@hpe.com> --- dmidecode.c | 2 +- dmidecode.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dmidecode.c b/dmidecode.c index 864a193..2a075c1 100644 --- a/dmidecode.c +++ b/dmidecode.c @@ -267,7 +267,7 @@ static void dmi_dump(const struct dmi_header *h) } /* shift is 0 if the value is in bytes, 1 if it is in kilobytes */ -static void dmi_print_memory_size(const char *attr, u64 code, int shift) +void dmi_print_memory_size(const char *attr, u64 code, int shift) { unsigned long capacity; u16 split[7]; diff --git a/dmidecode.h b/dmidecode.h index 1dc59a7..7e90fcb 100644 --- a/dmidecode.h +++ b/dmidecode.h @@ -33,5 +33,6 @@ struct dmi_header 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); #endif -- 2.26.2 _______________________________________________ https://lists.nongnu.org/mailman/listinfo/dmidecode-devel