summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2017-06-20 17:13:22 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2017-06-20 17:13:22 +0000
commit58221ec8c81cb5d5c3a16b6c9f5af439482d6022 (patch)
tree026ad1a926743aae59f79dba1db7c389c6a2b54f
parent305bfbefbd9fbf9716942e748e8121602b1f928d (diff)
In ddb print socket bit field so_state in hex to match SS_ defines.
-rw-r--r--sys/kern/uipc_socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c
index a65a49e45fa..82b14796a21 100644
--- a/sys/kern/uipc_socket.c
+++ b/sys/kern/uipc_socket.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_socket.c,v 1.187 2017/06/20 09:10:04 mpi Exp $ */
+/* $OpenBSD: uipc_socket.c,v 1.188 2017/06/20 17:13:21 bluhm Exp $ */
/* $NetBSD: uipc_socket.c,v 1.21 1996/02/04 02:17:52 christos Exp $ */
/*
@@ -2051,7 +2051,7 @@ so_print(void *v,
(*pr)("so_type: %i\n", so->so_type);
(*pr)("so_options: 0x%04x\n", so->so_options); /* %b */
(*pr)("so_linger: %i\n", so->so_linger);
- (*pr)("so_state: %i\n", so->so_state);
+ (*pr)("so_state: 0x%04x\n", so->so_state);
(*pr)("so_pcb: %p\n", so->so_pcb);
(*pr)("so_proto: %p\n", so->so_proto);