faft: Print multiple arguments when calling an action method
Originally it only prints the first argument, should print all of them.
BUG=chromium-os:19710
TEST=Run firmware_RONormalBoot on Snow to see the following message printed:
17:08:31 INFO | calling <bound method FAFTClient.set_firmware_flags of <__main__.FAFTClient object at 0x785beb50>> with parameter ('a', 0)
Change-Id: Iad9779e9facb65a8184cfc8e023c1e4bfb07918f
Reviewed-on: https://gerrit.chromium.org/gerrit/29594
Reviewed-by: Vic Yang <victoryang@chromium.org>
Commit-Ready: Tom Wai-Hong Tam <waihong@chromium.org>
Tested-by: Tom Wai-Hong Tam <waihong@chromium.org>
diff --git a/server/cros/faftsequence.py b/server/cros/faftsequence.py
index c72e252..a213dbc 100644
--- a/server/cros/faftsequence.py
+++ b/server/cros/faftsequence.py
@@ -1084,7 +1084,7 @@
args = action_tuple[1:]
if callable(action):
logging.info('calling %s with parameter %s' % (
- str(action), str(action_tuple[1])))
+ str(action), str(args)))
return action(*args)
else:
logging.info('action is not callable!')