aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhillip Lougher <phillip@squashfs.org.uk>2014-08-31 23:56:02 +0100
committerMohamad Ayyash <mkayyash@google.com>2015-02-23 12:36:45 -0800
commitad8e7bea60bf9b504e096dd1ae6ecb6f0361a74e (patch)
treec0b2557dedaf6ec912b9181ea1337abe748e58b1
parent6afbb2022569d5342394b216bbb559401691b54f (diff)
downloadsquashfs-tools-ad8e7bea60bf9b504e096dd1ae6ecb6f0361a74e.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.c8
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;
}
}