diff options
author | phk <phk@FreeBSD.org> | 2003-03-06 06:31:49 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-03-06 06:31:49 +0000 |
commit | 6a5004156432b623e17462bebb2df4c282ca5823 (patch) | |
tree | 101c8b6da36f0ed4c13a8c90b0c426d04c7dff91 /sbin/ccdconfig | |
parent | c00efc4a6458fc8f3d1e0efe77cba6ad40fa575b (diff) | |
download | FreeBSD-src-6a5004156432b623e17462bebb2df4c282ca5823.zip FreeBSD-src-6a5004156432b623e17462bebb2df4c282ca5823.tar.gz |
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.
Diffstat (limited to 'sbin/ccdconfig')
-rw-r--r-- | sbin/ccdconfig/ccdconfig.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sbin/ccdconfig/ccdconfig.c b/sbin/ccdconfig/ccdconfig.c index ae235f6..6d69353 100644 --- a/sbin/ccdconfig/ccdconfig.c +++ b/sbin/ccdconfig/ccdconfig.c @@ -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", |