Commit c01efda8 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

bfd: timerfd -- Fix parsing typo

While been converting reading of data stream
to bfd the @buf member was left untouched leading
to incorrect data to be read, fix it setting up
proper one, ie @str itself, otherwise dumping
of timerfd files are failing.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 5eb39aad
...@@ -1102,7 +1102,7 @@ static int parse_timerfd(struct bfd *f, char *str, TimerfdEntry *tfy) ...@@ -1102,7 +1102,7 @@ static int parse_timerfd(struct bfd *f, char *str, TimerfdEntry *tfy)
* it_value: (0, 49406829) * it_value: (0, 49406829)
* it_interval: (1, 0) * it_interval: (1, 0)
*/ */
if (sscanf(buf, "clockid: %d", &tfy->clockid) != 1) if (sscanf(str, "clockid: %d", &tfy->clockid) != 1)
goto parse_err; goto parse_err;
str = breadline(f); str = breadline(f);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment