mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-25 12:14:33 +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:
1 parent
7ba794d9ba
commit
f0f3df8a48
1 file changed
+1
-4
@@ -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