Re: [PATCH] perf util config : Modify size factor of snprintf

2018-12-06 Thread Arnaldo Carvalho de Melo
Em Sun, Dec 02, 2018 at 12:46:03AM +0900, Sihyeon Jang escreveu: > According to definition of snprintf, it gets size factor including null('\0') > byte. > So '-1' is not neccessary. Also it will be helpful unfied style with other > cases. (eg. builtin-script.c) Thanks, applied. - Arnaldo > Cc

[PATCH] perf util config : Modify size factor of snprintf

2018-12-01 Thread Sihyeon Jang
According to definition of snprintf, it gets size factor including null('\0') byte. So '-1' is not neccessary. Also it will be helpful unfied style with other cases. (eg. builtin-script.c) Cc: Jiri Olsa Cc: Namhyung Kim Signed-off-by: Sihyeon Jang --- tools/perf/util/config.c | 4 ++-- 1 fil

[PATCH] perf util config : Modify size factor of snprintf

2018-12-01 Thread Sihyeon Jang
According to definition of snprintf, it gets size factor including null('\0') byte. So '-1' is not neccessary. Also it will be helpful unfied style with other cases. (eg. builtin-script.c) Cc: Jiri Olsa Cc: Namhyung Kim Signed-off-by: Sihyeon Jang --- tools/perf/util/config.c | 4 ++-- 1 fil