mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 06:15:15 +00:00
Labels do fit in the imparted space by construction now, so no need
to check. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4714 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -85,10 +85,7 @@ static void print_temp_info(float n_cur, float n_over, float n_hyst,
|
||||
static void print_label(const char *label, int space)
|
||||
{
|
||||
int len = strlen(label)+1;
|
||||
if (len > space)
|
||||
printf("%s:\n%*s", label, space, "");
|
||||
else
|
||||
printf("%s:%*s", label, space - len, "");
|
||||
printf("%s:%*s", label, space - len, "");
|
||||
}
|
||||
|
||||
static void print_vid_info(const sensors_chip_name *name, int f_vid,
|
||||
|
Reference in New Issue
Block a user