=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sndioctl/sndioctl.c,v retrieving revision 1.9 retrieving revision 1.10 diff -c -r1.9 -r1.10 *** src/usr.bin/sndioctl/sndioctl.c 2020/05/17 05:37:49 1.9 --- src/usr.bin/sndioctl/sndioctl.c 2020/05/17 05:39:32 1.10 *************** *** 1,4 **** ! /* $OpenBSD: sndioctl.c,v 1.9 2020/05/17 05:37:49 ratchov Exp $ */ /* * Copyright (c) 2014-2020 Alexandre Ratchov * --- 1,4 ---- ! /* $OpenBSD: sndioctl.c,v 1.10 2020/05/17 05:39:32 ratchov Exp $ */ /* * Copyright (c) 2014-2020 Alexandre Ratchov * *************** *** 432,443 **** if (e != firstent(p, e->desc.node1.name)) continue; } ! if (more) ! printf(","); ! print_node(&e->desc.node1, mono); ! printf(":"); ! print_num(e); ! more = 1; } } } --- 432,452 ---- if (e != firstent(p, e->desc.node1.name)) continue; } ! if (e->desc.maxval == 1) { ! if (e->curval) { ! if (more) ! printf(","); ! print_node(&e->desc.node1, mono); ! more = 1; ! } ! } else { ! if (more) ! printf(","); ! print_node(&e->desc.node1, mono); ! printf(":"); ! print_num(e); ! more = 1; ! } } } }