summaryrefslogtreecommitdiff
path: root/mount/swapon.c
diff options
context:
space:
mode:
Diffstat (limited to 'mount/swapon.c')
-rw-r--r--mount/swapon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mount/swapon.c b/mount/swapon.c
index e3dfffac..71b25150 100644
--- a/mount/swapon.c
+++ b/mount/swapon.c
@@ -249,7 +249,7 @@ do_swapoff(const char *special, int quiet) {
exit(1); /* any further swapoffs will also fail */
}
- if (!quiet) {
+ if (!quiet || errno == ENOMEM) {
int errsv = errno;
fprintf(stderr, "%s: %s: %s\n", program_name,
special, strerror(errsv));