diff options
author | Dave Reisner <dreisner@archlinux.org> | 2013-01-01 21:24:13 -0500 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2013-01-01 21:24:13 -0500 |
commit | 598c7174b5b917a2a47ea1cca724f77c0f673485 (patch) | |
tree | 23e384da5d3e668453f537cfd2396273e53f15a0 | |
parent | 07347623642f6f841580fac139dba2b3b6d97b35 (diff) | |
download | mirror-ponymix-598c7174b5b917a2a47ea1cca724f77c0f673485.tar.gz mirror-ponymix-598c7174b5b917a2a47ea1cca724f77c0f673485.tar.bz2 mirror-ponymix-598c7174b5b917a2a47ea1cca724f77c0f673485.zip |
action, not option
-rw-r--r-- | ponymix.cc | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -86,7 +86,7 @@ static enum Action string_to_action(const char* str) { try { return actionmap.at(str); } catch(std::out_of_range) { - errx(1, "error: Invalid option specified: %s", str); + errx(1, "error: Invalid action specified: %s", str); } } @@ -130,12 +130,13 @@ static Device* string_to_device_or_die(Pulse& ponymix, static void Print(const Device& device) { printf("%s %d: %s\n" " %s\n" - " Avg. Volume: %d%%\n", + " Avg. Volume: %d%%%s\n", type_to_string(device.Type()), device.Index(), device.Name().c_str(), device.Desc().c_str(), - device.Volume()); + device.Volume(), + device.Muted() ? " [muted]" : ""); } static void Print(const Card& card) { |