Skip to content

Commit d487b8b

Browse files
committed
fix(axparameter): Don't parse parameter name in the callback
The problem is that parameter_changed function proceeds with parsing of the parameter name expecting it has format like: "root.axparameter.IsCustomized". But the callback was registered to track "IsCustomized". Closes #440
1 parent d0388bd commit d487b8b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

axparameter/app/axparameter.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,7 @@ static gboolean monitor_parameters(void* msg_void_ptr) {
156156
// This function is registered as a callback using ax_parameter_register_callback().
157157
// It must not call any ax_parameter_* functions, since that would cause a deadlock.
158158
static void parameter_changed(const gchar* name, const gchar* value, gpointer handle_void_ptr) {
159-
const char* name_without_qualifiers = &name[strlen("root." APP_NAME ".")];
160-
syslog(LOG_INFO, "%s was changed to '%s' just now", name_without_qualifiers, value);
159+
syslog(LOG_INFO, "%s was changed to '%s' just now", name, value);
161160

162161
// Schedule a call in one second to a function that is allowed to use ax_parameter_* functions.
163162
// The strings must be copied, since they are owned by the AXParameter library.

0 commit comments

Comments
 (0)