]> rtime.felk.cvut.cz Git - can-utils.git/commit
candump: reduce printf calls for logfile format
authorOliver Hartkopp <socketcan@hartkopp.net>
Mon, 5 May 2014 19:29:56 +0000 (21:29 +0200)
committerOliver Hartkopp <socketcan@hartkopp.net>
Mon, 5 May 2014 19:29:56 +0000 (21:29 +0200)
commit31ccf45dc401ac80269bbaa6c0d1fe352e706006
tree2e68a749d99071e61988ff9a4bea64d5964eb65d
parent67a2bdcd336e6becfa5784742e18c88dbeddc973
candump: reduce printf calls for logfile format

The creation of the logfile format was using fprint_canframe() and two other
fprintf() calls to produce a single logfile format line. Instead of using
fprint_canframe() use sprint_canframe() directly and reduce the printf() calls
from three to one.

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
candump.c