Changeset View
Changeset View
Standalone View
Standalone View
sbin/camcontrol/attrib.c
Show First 20 Lines • Show All 132 Lines • ▼ Show 20 Lines | #endif | ||||
ccb = cam_getccb(device); | ccb = cam_getccb(device); | ||||
if (ccb == NULL) { | if (ccb == NULL) { | ||||
warnx("%s: error allocating CCB", __func__); | warnx("%s: error allocating CCB", __func__); | ||||
error = 1; | error = 1; | ||||
goto bailout; | goto bailout; | ||||
} | } | ||||
CCB_CLEAR_ALL_EXCEPT_HDR(&ccb->csio); | |||||
STAILQ_INIT(&write_attr_list); | STAILQ_INIT(&write_attr_list); | ||||
/* | /* | ||||
* By default, when displaying attribute values, we trim out | * By default, when displaying attribute values, we trim out | ||||
* non-ASCII characters in ASCII fields. We display all fields | * non-ASCII characters in ASCII fields. We display all fields | ||||
* (description, attribute number, attribute size, and readonly | * (description, attribute number, attribute size, and readonly | ||||
* status). We default to displaying raw text. | * status). We default to displaying raw text. | ||||
* | * | ||||
▲ Show 20 Lines • Show All 353 Lines • Show Last 20 Lines |