2
0
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:
Jean Delvare
2007-08-26 20:33:21 +00:00
parent 7ba794d9ba
commit f0f3df8a48

View File

@@ -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,