Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[mce-sensorfw] Use obtained session id in logging. Fixes MER#1661
Logging uses cached session id at stage where the cached value has not
been updated to match reality. Causes diagnostic logging to look as if
there would have been error / does not allow telling actual reason for
failing to open a session.

Use the session id obtained from sensorfwd.
  • Loading branch information
spiiroin committed Oct 3, 2016
1 parent fd5ee4a commit f44aa46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mce-sensorfw.c
Expand Up @@ -2568,7 +2568,7 @@ sfw_session_start_cb(DBusPendingCall *pc, void *aptr)
EXIT:
mce_log(LL_DEBUG, "session(%s): sid=%d",
sfw_plugin_get_sensor_name(self->ses_plugin),
(int)self->ses_id);
(int)ses);

switch( ses ) {
case SESSION_ID_INVALID:
Expand Down

0 comments on commit f44aa46

Please sign in to comment.