Don't pick the name out of the devstat member of the ccd softc, it will

disappear soon.  Exporting the softc in the first place is a mistake.
This commit is contained in:
phk 2003-03-06 06:31:49 +00:00
parent c00efc4a64
commit 6a50041564

View File

@ -506,8 +506,7 @@ print_ccd_info(struct ccd_s *cs)
fflush(stdout);
/* Read in the component info. */
asprintf(&cp, "%s%d", cs->device_stats.device_name,
cs->device_stats.unit_number);
asprintf(&cp, "ccd%d", cs->sc_unit);
if (cp == NULL) {
printf("\n");
warn("ccd%d: can't allocate memory",