Add firmware revision to probe printf.

This commit is contained in:
Søren Schmidt 2004-08-05 21:11:33 +00:00
parent 99130297c0
commit d5a9dcbf23
4 changed files with 9 additions and 7 deletions

View file

@ -392,10 +392,11 @@ ad_print(struct ad_softc *adp)
ata_mode2str(adp->device->mode));
}
else {
ata_prtdev(adp->device,"%lluMB <%.40s> [%lld/%d/%d] at ata%d-%s %s",
ata_prtdev(adp->device,
"%lluMB <%.40s/%.8s> [%lld/%d/%d] at ata%d-%s %s",
(unsigned long long)(adp->total_secs /
((1024L * 1024L) / DEV_BSIZE)),
adp->device->param->model,
adp->device->param->model, adp->device->param->revision,
(unsigned long long)(adp->total_secs /
(adp->heads * adp->sectors)),
adp->heads, adp->sectors,

View file

@ -454,7 +454,8 @@ acd_describe(struct acd_softc *cdp)
(cdp->cap.media & MST_READ_DVDROM) ? "DVDROM" : "CDROM");
if (cdp->changer_info)
printf("with %d CD changer ", cdp->changer_info->slots);
printf("<%.40s> at ata%d-%s %s\n", cdp->device->param->model,
printf("<%.40s/%.8s> at ata%d-%s %s\n",
cdp->device->param->model, cdp->device->param->revision,
device_get_unit(cdp->device->channel->dev),
(cdp->device->unit == ATA_MASTER) ? "master" : "slave",
ata_mode2str(cdp->device->mode) );

View file

@ -211,8 +211,8 @@ afd_describe(struct afd_softc *fdp)
}
}
else {
ata_prtdev(fdp->device, "REMOVABLE <%.40s> at ata%d-%s %s\n",
fdp->device->param->model,
ata_prtdev(fdp->device, "REMOVABLE <%.40s/%.8s> at ata%d-%s %s\n",
fdp->device->param->model, fdp->device->param->revision,
device_get_unit(fdp->device->channel->dev),
(fdp->device->unit == ATA_MASTER) ? "master" : "slave",
ata_mode2str(fdp->device->mode));

View file

@ -256,8 +256,8 @@ ast_describe(struct ast_softc *stp)
printf("\n");
}
else {
ata_prtdev(stp->device, "TAPE <%.40s> at ata%d-%s %s\n",
stp->device->param->model,
ata_prtdev(stp->device, "TAPE <%.40s/%.8s> at ata%d-%s %s\n",
stp->device->param->model, stp->device->param->revision,
device_get_unit(stp->device->channel->dev),
(stp->device->unit == ATA_MASTER) ? "master" : "slave",
ata_mode2str(stp->device->mode));