FreeBSD Bugzilla – Attachment 7024 Details for
Bug 15512
ATA driver bug for CD drives that don't report speed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.21 KB, created by
john
on 1999-12-16 01:40:03 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
john
Created:
1999-12-16 01:40:03 UTC
Size:
1.21 KB
patch
obsolete
>--- atapi-cd.c.orig Tue Dec 14 21:25:26 1999 >+++ atapi-cd.c Thu Dec 16 11:27:23 1999 >@@ -260,9 +260,10 @@ > cdp->atp->controller->lun, > (cdp->atp->unit == ATA_MASTER) ? "master" : "slave "); > >+ printf("acd%d:", cdp->lun); >+ comma = 0; > if (cdp->cap.cur_read_speed) { >- printf("acd%d: ", cdp->lun); >- printf("read %dKB/s", cdp->cap.cur_read_speed * 1000 / 1024); >+ printf(" read %dKB/s", cdp->cap.cur_read_speed * 1000 / 1024); > if (cdp->cap.max_read_speed) > printf(" (%dKB/s)", cdp->cap.max_read_speed * 1000 / 1024); > if ((cdp->cap.cur_write_speed) && >@@ -272,11 +273,13 @@ > if (cdp->cap.max_write_speed) > printf(" (%dKB/s)", cdp->cap.max_write_speed * 1000 / 1024); > } >+ comma = 1; > } >- if (cdp->cap.buf_size) >- printf(", %dKB buffer", cdp->cap.buf_size); >- printf(", %s\n", ata_mode2str(cdp->atp->controller->mode[ >- (cdp->atp->unit == ATA_MASTER) ? 0 : 1])); >+ if (cdp->cap.buf_size) { >+ printf("%s %dKB buffer", comma ? "," : "", cdp->cap.buf_size); comma = 1; >+ } >+ printf("%s %s\n", comma ? "," : "", ata_mode2str(cdp->atp->controller->mode[ >+ (cdp->atp->unit == ATA_MASTER) ? 0 : 1])); comma = 1; > > printf("acd%d: supported read types:", cdp->lun); > comma = 0;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 15512
: 7024