Date: Mon, 29 Jun 2009 08:36:24 GMT From: Alexander Motin <mav@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 165372 for review Message-ID: <200906290836.n5T8aO7P075836@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=165372 Change 165372 by mav@mav_mavbook on 2009/06/29 08:35:31 Report base transfer speed if SIM does not provide detailed info. Affected files ... .. //depot/projects/scottl-camlock/src/sbin/camcontrol/camcontrol.c#11 edit Differences ... ==== //depot/projects/scottl-camlock/src/sbin/camcontrol/camcontrol.c#11 (text+ko) ==== @@ -919,6 +919,14 @@ if ((spi->valid & CTS_SPI_VALID_SYNC_RATE) != 0) { freq = scsi_calc_syncsrate(spi->sync_period); speed = freq; + } else { + struct ccb_pathinq cpi; + + retval = get_cpi(device, &cpi); + if (retval == 0) { + speed = cpi.base_transfer_speed; + freq = 0; + } } fprintf(stdout, "%s%d: ", device->device_name,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906290836.n5T8aO7P075836>