diff --git a/sys/dev/an/if_an.c b/sys/dev/an/if_an.c index fd34900575ab..ffd285a5e4f9 100644 --- a/sys/dev/an/if_an.c +++ b/sys/dev/an/if_an.c @@ -88,6 +88,7 @@ __FBSDID("$FreeBSD$"); #endif #include +#include #include #include #include @@ -1593,9 +1594,7 @@ an_dump_record(struct an_softc *sc, struct an_ltv_gen *ltv, char *string) printf("%02x ", *ptr2); temp = *ptr2++; - if (temp >= ' ' && temp <= '~') - buf[count] = temp; - else if (temp >= 'A' && temp <= 'Z') + if (isprint(temp)) buf[count] = temp; else buf[count] = '.';