am 91cb2cb3: Merge "toolbox: indicate why swap{on|off} failed"

* commit '91cb2cb3411472a567c8ec4e8dad9d3a1ebc1dca':
  toolbox: indicate why swap{on|off} failed
This commit is contained in:
Elliott Hughes 2014-11-18 18:06:06 +00:00 committed by Android Git Automerger
commit 23ac318d56
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;