mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-11 14:10:34 +00:00
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
2b4601d10b
commit
a9f65dc3a8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111943
@ -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