From eaee9979451c588505bf2329070abd4b59f3dc82 Mon Sep 17 00:00:00 2001 From: Dr-Noob Date: Sat, 25 Mar 2023 10:47:17 +0100 Subject: [PATCH] [v1.03][ARM] Show Unknown SoC if no exact model is found instead of showing the raw name --- src/arm/soc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/arm/soc.c b/src/arm/soc.c index f872dd0..cbdb5a0 100644 --- a/src/arm/soc.c +++ b/src/arm/soc.c @@ -782,7 +782,9 @@ struct system_on_chip* get_soc(void) { } #endif // ifdef __linux__ - if(soc->raw_name == NULL) { + if(soc->soc_vendor == SOC_VENDOR_UNKNOWN) { + // raw_name might not be NULL, but if we were unable to find + // the exact SoC, just print "Unkwnown" soc->raw_name = emalloc(sizeof(char) * (strlen(STRING_UNKNOWN)+1)); snprintf(soc->raw_name, strlen(STRING_UNKNOWN)+1, STRING_UNKNOWN); }