diff options
author | Phillip Lougher <phillip@squashfs.org.uk> | 2014-08-27 05:46:27 +0100 |
---|---|---|
committer | Phillip Lougher <phillip@squashfs.org.uk> | 2014-08-27 05:46:27 +0100 |
commit | 2f194c80b141d1fe5a68f8661750264beaefdc78 (patch) | |
tree | a5f5c3a727dc7184460450cf87970538e4a86382 | |
parent | 95140b96545de5e1cbe88a5316bdc41cfab717ed (diff) | |
download | squashfs-tools-2f194c80b141d1fe5a68f8661750264beaefdc78.tar.gz |
action: make action_read_file use ACTION_LOG_{NONE|VERBOSE}
Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
-rw-r--r-- | squashfs-tools/action.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/squashfs-tools/action.c b/squashfs-tools/action.c index 6feb616..e7304a8 100644 --- a/squashfs-tools/action.c +++ b/squashfs-tools/action.c @@ -797,22 +797,24 @@ static int eval_expr_top(struct action *action, struct action_data *action_data) */ int parse_action_verbose(char *s) { - return parse_action(s, 1); + return parse_action(s, ACTION_LOG_VERBOSE); } int parse_action_nonverbose(char *s) { - return parse_action(s, 0); + return parse_action(s, ACTION_LOG_NONE); } int read_action_file(char *filename, int verbose) { - if(verbose) + switch(verbose) { + case ACTION_LOG_VERBOSE: return read_file(filename, "action", parse_action_verbose); - else + default: return read_file(filename, "action", parse_action_nonverbose); + } } |