Deleted Added
full compact
28c28
< * $FreeBSD: head/sbin/camcontrol/camcontrol.c 62361 2000-07-01 21:28:49Z n_hibma $
---
> * $FreeBSD: head/sbin/camcontrol/camcontrol.c 64382 2000-08-08 06:24:17Z kbyanc $
127c127
< {"modepage", CAM_ARG_MODE_PAGE, "dem:P:"},
---
> {"modepage", CAM_ARG_MODE_PAGE, "bdelm:P:"},
1556a1557
> int binary = 0, list = 0;
1559a1561,1563
> case 'b':
> binary = 1;
> break;
1565a1570,1572
> case 'l':
> list = 1;
> break;
1583c1590
< if (mode_page == -1)
---
> if (mode_page == -1 && list == 0)
1586,1587c1593,1600
< mode_edit(device, mode_page, page_control, arglist & CAM_ARG_DBD,
< arglist & CAM_ARG_MODE_EDIT, retry_count, timeout);
---
> if (list) {
> mode_list(device, page_control, arglist & CAM_ARG_DBD,
> retry_count, timeout);
> } else {
> mode_edit(device, mode_page, page_control,
> arglist & CAM_ARG_DBD, arglist & CAM_ARG_MODE_EDIT, binary,
> retry_count, timeout);
> }
2978,2979c2991,2992
< " camcontrol modepage [dev_id][generic args] <-m page> [-P pagectl]\n"
< " [-e][-d]\n"
---
> " camcontrol modepage [dev_id][generic args] <-m page | -l>\n"
> " [-P pagectl][-e | -b][-d]\n"
3024a3038
> "-b force view to binary mode\n"