From: Javi Merino Date: Fri, 20 Mar 2015 18:12:55 +0000 (+0000) Subject: tools lib traceevent: Factor out allocating and processing args X-Git-Tag: omap-for-v4.2/o2_dc~146^2~57^2~15 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=929a6bb71aa5ae6cb15b4b42ab7ac183ee286a1a;p=pandora-kernel.git tools lib traceevent: Factor out allocating and processing args The sequence of allocating the print_arg field, calling process_arg() and verifying that the next event delimiter is repeated twice in process_hex() and will also be used for process_int_array(). Factor it out to a function to avoid writing the same code again and again. Signed-off-by: Javi Merino Acked-by: Namhyung Kim Acked-by: Steven Rostedt Cc: Jiri Olsa Link: http://lkml.kernel.org/r/1426875176-30244-2-git-send-email-javi.merino@arm.com Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed