diff options
Diffstat (limited to 'usr.sbin/bluetooth/hccontrol/info.c')
-rw-r--r-- | usr.sbin/bluetooth/hccontrol/info.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/usr.sbin/bluetooth/hccontrol/info.c b/usr.sbin/bluetooth/hccontrol/info.c index 1a8649f..12b685b 100644 --- a/usr.sbin/bluetooth/hccontrol/info.c +++ b/usr.sbin/bluetooth/hccontrol/info.c @@ -25,14 +25,12 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: info.c,v 1.1 2002/11/24 20:22:38 max Exp $ + * $Id: info.c,v 1.3 2003/08/18 19:19:54 max Exp $ * $FreeBSD$ */ -#include <sys/types.h> -#include <sys/endian.h> +#include <bluetooth.h> #include <errno.h> -#include <ng_hci.h> #include <stdio.h> #include <string.h> #include "hccontrol.h" @@ -173,9 +171,7 @@ hci_read_bd_addr(int s, int argc, char **argv) return (FAILED); } - fprintf(stdout, "BD_ADDR: %02x:%02x:%02x:%02x:%02x:%02x\n", - rp.bdaddr.b[5], rp.bdaddr.b[4], rp.bdaddr.b[3], - rp.bdaddr.b[2], rp.bdaddr.b[1], rp.bdaddr.b[0]); + fprintf(stdout, "BD_ADDR: %s\n", bt_ntoa(&rp.bdaddr, NULL)); return (OK); } /* hci_read_bd_addr */ |