diff options
author | Phillip Lougher <phillip@squashfs.org.uk> | 2014-08-31 23:56:02 +0100 |
---|---|---|
committer | Phillip Lougher <phillip@squashfs.org.uk> | 2014-08-31 23:56:02 +0100 |
commit | 75e84b3d44f4430fa2c1a761b14498c26c58145a (patch) | |
tree | c0b2557dedaf6ec912b9181ea1337abe748e58b1 | |
parent | 6b809631d49eddbe2a6efe3b15559e81d6a0bbab (diff) | |
download | squashfs-tools-75e84b3d44f4430fa2c1a761b14498c26c58145a.tar.gz |
actions: Regularise SYNTAX_ERROR() statements
Get rid of the redundant "action: " prefix and make the
error messages match others.
Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
-rw-r--r-- | squashfs-tools/action.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/squashfs-tools/action.c b/squashfs-tools/action.c index 8e615c7..a522044 100644 --- a/squashfs-tools/action.c +++ b/squashfs-tools/action.c @@ -1040,7 +1040,7 @@ static long long parse_uid(char *arg) { if (*b == '\0') { if (uid < 0 || uid >= (1LL << 32)) { - SYNTAX_ERROR("action: uid out of range\n"); + SYNTAX_ERROR("Uid out of range\n"); return -1; } } else { @@ -1049,7 +1049,7 @@ static long long parse_uid(char *arg) { if (passwd) uid = passwd->pw_uid; else { - SYNTAX_ERROR("action: invalid uid or unknown user\n"); + SYNTAX_ERROR("Invalid uid or unknown user\n"); return -1; } } @@ -1064,7 +1064,7 @@ static long long parse_gid(char *arg) { if (*b == '\0') { if (gid < 0 || gid >= (1LL << 32)) { - SYNTAX_ERROR("action: gid out of range\n"); + SYNTAX_ERROR("Gid out of range\n"); return -1; } } else { @@ -1073,7 +1073,7 @@ static long long parse_gid(char *arg) { if (group) gid = group->gr_gid; else { - SYNTAX_ERROR("action: invalid gid or unknown group\n"); + SYNTAX_ERROR("Invalid gid or unknown group\n"); return -1; } } |