Fix 'chio params' so that it actually prints out the current picker.

(This was broken when the volume tag changes went in.)

Submitted by:	Josef Karthauser <joe@pavilion.net>
This commit is contained in:
ken 1998-10-01 23:30:14 +00:00
parent c9a04630c0
commit 8bb1ed55dd

View File

@ -382,6 +382,7 @@ static int
do_params(char *cname, int argc, char **argv)
{
struct changer_params data;
int picker;
/* No arguments to this command. */
@ -406,6 +407,12 @@ do_params(char *cname, int argc, char **argv)
(void) printf(", %d portal%s", data.cp_nportals,
(data.cp_nportals > 1) ? "s" : "");
/* Get current picker from changer and display it. */
if (ioctl(changer_fd, CHIOGPICKER, &picker))
err(1, "%s: CHIOGPICKER", changer_name);
(void) printf("\n%s: current picker: %d\n", changer_name, picker);
return (0);
usage: