In ddb print socket bit field so_state in hex to match SS_ defines.
authorbluhm <bluhm@openbsd.org>
Tue, 20 Jun 2017 17:13:21 +0000 (17:13 +0000)
committerbluhm <bluhm@openbsd.org>
Tue, 20 Jun 2017 17:13:21 +0000 (17:13 +0000)
sys/kern/uipc_socket.c

index a65a49e..82b1479 100644 (file)
@@ -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);