Take out special error message for EINVAL...we really do want it to be
"invalid argument".
This commit is contained in:
parent
563120df88
commit
43e6fcd576
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=8502
@ -96,10 +96,6 @@ add(char *name, int ignoreebusy)
|
|||||||
|
|
||||||
if (swapon(name) == -1) {
|
if (swapon(name) == -1) {
|
||||||
switch (errno) {
|
switch (errno) {
|
||||||
case EINVAL:
|
|
||||||
fprintf(stderr, "swapon: %s: device not configured\n",
|
|
||||||
name);
|
|
||||||
break;
|
|
||||||
case EBUSY:
|
case EBUSY:
|
||||||
if (!ignoreebusy)
|
if (!ignoreebusy)
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
|
Loading…
Reference in New Issue
Block a user