aboutsummaryrefslogtreecommitdiff
path: root/sbin/camcontrol
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2019-09-09 19:00:37 +0000
committerAlexander Motin <mav@FreeBSD.org>2019-09-09 19:00:37 +0000
commit209002976934ad70cc924b01d261832c796f503a (patch)
treed0885c78f846efd01ebb4b407561d9ae83404d9d /sbin/camcontrol
parent606478ebb2e73e1da2e9e283fd7c9ee0150c4b4d (diff)
downloadsrc-209002976934ad70cc924b01d261832c796f503a.tar.gz
src-209002976934ad70cc924b01d261832c796f503a.zip
Add one more error message to r352082.
MFC after: 5 days Sponsored by: iXsystems, Inc.
Notes
Notes: svn path=/head/; revision=352103
Diffstat (limited to 'sbin/camcontrol')
-rw-r--r--sbin/camcontrol/camcontrol.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c
index ebb5000a0d84..9a3f77caea4b 100644
--- a/sbin/camcontrol/camcontrol.c
+++ b/sbin/camcontrol/camcontrol.c
@@ -1975,7 +1975,8 @@ atahpa_proc_resp(struct cam_device *device, union ccb *ccb, u_int64_t *hpasize)
if (error & ATA_ERROR_ID_NOT_FOUND) {
warnx("Max address has already been set since "
"last power-on or hardware reset");
- }
+ } else if (hpasize == NULL)
+ warnx("Command failed with ATA error");
return (1);
}