From 40cbec44e3532a46afa0888495a8640105d733a8 Mon Sep 17 00:00:00 2001 From: Nate Drude Date: Tue, 28 Feb 2023 14:29:41 -0600 Subject: [PATCH] main: drop noisy print when soc_id file is missing Not all SoCs (e.g. AM62) have soc_id. Don't print an error, just return "Unknown". Signed-off-by: Nate Drude --- main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/main.c b/main.c index 0edb7f4..697a4d3 100644 --- a/main.c +++ b/main.c @@ -254,7 +254,6 @@ static char * get_soc() { f=fopen("/sys/devices/soc0/soc_id","r"); if (!f) { - printf("%s: Error: Could not open /sys/devices/soc0/soc_id\n", __func__); return soc_name; } ret = fgets(soc_name, MACHINE_LEN, f);