am 91cb2cb3: Merge "toolbox: indicate why swap{on|off} failed"
* commit '91cb2cb3411472a567c8ec4e8dad9d3a1ebc1dca': toolbox: indicate why swap{on|off} failed
This commit is contained in:
commit
23ac318d56
|
@ -13,7 +13,7 @@ int swapoff_main(int argc, char **argv)
|
|||
|
||||
err = swapoff(argv[1]);
|
||||
if (err) {
|
||||
fprintf(stderr, "swapoff failed for %s\n", argv[1]);
|
||||
fprintf(stderr, "swapoff failed for %s: %s\n", argv[1], strerror(errno));
|
||||
}
|
||||
|
||||
return err;
|
||||
|
|
|
@ -59,7 +59,7 @@ int swapon_main(int argc, char **argv)
|
|||
|
||||
err = swapon(argv[argc - 1], flags);
|
||||
if (err) {
|
||||
fprintf(stderr, "swapon failed for %s\n", argv[argc - 1]);
|
||||
fprintf(stderr, "swapon failed for %s: %s\n", argv[argc - 1], strerror(errno));
|
||||
}
|
||||
|
||||
return err;
|
||||
|
|
Loading…
Reference in New Issue