FreeBSD/usr.sbin/mlxcontrol/config.c
/********************************************************************************
 * Print details for the system drive (drvno) in a format that we will be 
 * able to parse later.
 *
 * drive?? <raidlevel> <writemode>
 *   span? 0x????????-0x???????? ????MB on <disk> [...]
 *   ...
 */
Print details for the system drive (drvno) in a format that we will be
able to parse later.


Print details for the system drive ( drvno ) in a format that we will be able to parse later .
static void
print_span(struct mlx_sys_drv_span *span, int arms)
{
    int		i;
    printf("0x%08x-0x%08x %uMB on", span->sp_start_lba, span->sp_start_lba + span->sp_nblks, span->sp_nblks / 2048);
    for (i = 0; i < arms; i++)
	printf(" disk%02d%02d", span->sp_arm[i] >> 4, span->sp_arm[i] & 0x0f);
    printf("\n");
}
static void print_span ( struct mlx_sys_drv_span * span , int arms ) { int i ; printf ( " " , span -> sp_start_lba , span -> sp_start_lba + span -> sp_nblks , span -> sp_nblks / 2048 ) ; for ( i = 0 ; i < arms ; i ++ ) printf ( " " , span -> sp_arm [ i ] >> 4 , span -> sp_arm [ i ] & 0x0f ) ; printf ( " \n " ) ; }
Print details for the system drive (drvno) in a format that we will be
 able to parse later.
Print details for the system drive ( drvno ) in a format that we will be able to parse later .