1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-03 09:00:21 +00:00

Return early in printreg() when the pointer is NULL. For FreeBSD, the

strings describing the drive status and error bits are so deficient
that the pointer is always NULL.

Reported by:	Philippe Charnier <charnier@lirmm.fr>
This commit is contained in:
Bruce Evans 1995-10-21 08:51:01 +00:00
parent 079cc25b11
commit 49f544b572
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11608

View File

@ -302,6 +302,8 @@ printreg(s, v, bits)
printf("%s=%o", s, v);
else
printf("%s=%x", s, v);
if (!bits)
return;
bits++;
if (v && bits) {
putchar('<');