diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2013-06-10 22:46:14 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2013-06-10 22:46:14 +0000 |
commit | 47993d25dc90681cee30658b32b0b0454ffcefed (patch) | |
tree | 2ed82d424426158fb17446eb20e300fa10c4d2e7 /sys/ddb | |
parent | 6a0e2e592e08b5c1233bd156832e2d5d645c6daf (diff) |
If sysctl ddb.trigger=1 is not called from the console, the error
message "value is not available" was misleading. Use the ENODEV
error to generate the more appropriate message "Operation not
supported by device". Note that ddb.console must be set to 1 to
see that error at all.
OK mpf@
Diffstat (limited to 'sys/ddb')
-rw-r--r-- | sys/ddb/db_usrreq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ddb/db_usrreq.c b/sys/ddb/db_usrreq.c index b93d6674971..7dc503f15a4 100644 --- a/sys/ddb/db_usrreq.c +++ b/sys/ddb/db_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_usrreq.c,v 1.14 2010/07/26 01:56:27 guenther Exp $ */ +/* $OpenBSD: db_usrreq.c,v 1.15 2013/06/10 22:46:13 bluhm Exp $ */ /* * Copyright (c) 1996 Michael Shalayeff. All rights reserved. @@ -99,7 +99,7 @@ ddb_sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp, Debugger(); newp = NULL; } else - return (EOPNOTSUPP); + return (ENODEV); } return (sysctl_rdint(oldp, oldlenp, newp, 0)); default: |