summaryrefslogtreecommitdiffstats
path: root/src/partition/makefs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/partition/makefs.c')
-rw-r--r--src/partition/makefs.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/partition/makefs.c b/src/partition/makefs.c
index 22ff83dc77..88834092bd 100644
--- a/src/partition/makefs.c
+++ b/src/partition/makefs.c
@@ -51,10 +51,9 @@ static int run(int argc, char *argv[]) {
log_setup_service();
- if (argc != 3) {
- log_error("This program expects two arguments.");
- return -EINVAL;
- }
+ if (argc != 3)
+ return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
+ "This program expects two arguments.");
type = argv[1];
device = argv[2];