From c01efda8af8c0c63c4f8d907d1dd5d8c94e2098f Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Tue, 30 Sep 2014 11:41:36 +0400 Subject: [PATCH] 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: Cyrill Gorcunov Signed-off-by: Pavel Emelyanov --- proc_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proc_parse.c b/proc_parse.c index 40c30228f..d63d67755 100644 --- a/proc_parse.c +++ b/proc_parse.c @@ -1102,7 +1102,7 @@ static int parse_timerfd(struct bfd *f, char *str, TimerfdEntry *tfy) * it_value: (0, 49406829) * it_interval: (1, 0) */ - if (sscanf(buf, "clockid: %d", &tfy->clockid) != 1) + if (sscanf(str, "clockid: %d", &tfy->clockid) != 1) goto parse_err; str = breadline(f);