From: bluhm Date: Tue, 20 Jun 2017 17:13:21 +0000 (+0000) Subject: In ddb print socket bit field so_state in hex to match SS_ defines. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=fbb9056f2cfe736fc8c612981247cb9e29a51991;p=openbsd In ddb print socket bit field so_state in hex to match SS_ defines. --- 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);