| 911 | } |
| 912 | |
| 913 | bool ProcessCommandLOG(ICECAdapter * UNUSED(parser), const std::string &command, std::string &arguments) |
| 914 | { |
| 915 | if (command == "log") |
| 916 | { |
| 917 | std::string strLevel; |
| 918 | if (GetWord(arguments, strLevel)) |
| 919 | { |
| 920 | int iNewLevel = atoi(strLevel.c_str()); |
| 921 | if (iNewLevel >= CEC_LOG_ERROR && iNewLevel <= CEC_LOG_ALL) |
| 922 | { |
| 923 | g_cecLogLevel = iNewLevel; |
| 924 | |
| 925 | PrintToStdOut("log level changed to %s", strLevel.c_str()); |
| 926 | return true; |
| 927 | } |
| 928 | } |
| 929 | } |
| 930 | |
| 931 | return false; |
| 932 | } |
| 933 | |
| 934 | bool ProcessCommandSCAN(ICECAdapter *parser, const std::string &command, std::string & UNUSED(arguments)) |
| 935 | { |
no test coverage detected