mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 18:45:10 +00:00
platform stuff
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@918 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
parent
33943bda7c
commit
1b509f9357
@ -2619,7 +2619,7 @@ static struct text_object *construct_text_object(const char *s, const char *arg,
|
||||
strncpy(obj->data.i2c.type, buf2, 63);
|
||||
}
|
||||
|
||||
END OBJ(i2c, INFO_PLATFORM)
|
||||
END OBJ(platform, INFO_PLATFORM)
|
||||
char buf1[64], buf2[64];
|
||||
int n;
|
||||
|
||||
|
@ -688,7 +688,7 @@ int open_sysbus_sensor(const char *dir, const char *dev, const char *type, int n
|
||||
/* open file */
|
||||
fd = open(path, O_RDONLY);
|
||||
if (fd < 0) {
|
||||
CRIT_ERR("can't open '%s': %s\nplease fix i2c or remove it from Conky", path, strerror(errno));
|
||||
CRIT_ERR("can't open '%s': %s\nplease check your device or remove this var from Conky", path, strerror(errno));
|
||||
}
|
||||
|
||||
if (strcmp(type, "in") == 0 || strcmp(type, "temp") == 0
|
||||
|
Loading…
Reference in New Issue
Block a user