diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-03-06 06:31:49 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-03-06 06:31:49 +0000 |
commit | a9f65dc3a8c9721d08960cba7624c41a5a4cb33f (patch) | |
tree | 101c8b6da36f0ed4c13a8c90b0c426d04c7dff91 /sbin | |
parent | 2b4601d10b73f4e61d5a49b4e1e7883d9c96c646 (diff) | |
download | src-a9f65dc3a8c9721d08960cba7624c41a5a4cb33f.tar.gz src-a9f65dc3a8c9721d08960cba7624c41a5a4cb33f.zip |
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.
Notes
Notes:
svn path=/head/; revision=111943
Diffstat (limited to 'sbin')
-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 ae235f6cc82c..6d69353684f4 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", |