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:
parent
c00efc4a64
commit
6a50041564
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user