mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-24 20:21:43 +00:00
Use __func__ in sensors_fatal_error() to get function name.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5674 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
9d0552984c
commit
a03ec09359
4 files changed
+6
-9
No files matched your search
+1
-1
@@ -88,7 +88,7 @@ int sensors_parse_chip_name(const char *name, sensors_chip_name *res)
|
||||
return -SENSORS_ERR_CHIP_NAME;
|
||||
res->prefix = strndup(name, dash - name);
|
||||
if (!res->prefix)
|
||||
sensors_fatal_error("sensors_parse_chip_name",
|
||||
sensors_fatal_error(__func__,
|
||||
"Allocating name prefix");
|
||||
name = dash + 1;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user