Skip to content

Commit

Permalink
main: drop noisy print when soc_id file is missing
Browse files Browse the repository at this point in the history
Not all SoCs (e.g. AM62) have soc_id. Don't print an error, just return
"Unknown".

Signed-off-by: Nate Drude <nate.d@variscite.com>
  • Loading branch information
nsdrude committed Feb 28, 2023
1 parent ab160d3 commit 40cbec4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 40cbec4

Please sign in to comment.