Skip to content

Commit 76fe858

Browse files
frankdownunderslaff
authored andcommitted
Fix Compiler errors (SmingHub#1826)
Use print() instead of printf().
1 parent 841974f commit 76fe858

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Sming/Services/CommandProcessing/CommandHandler.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ void CommandHandler::procesHelpCommand(String commandLine, CommandOutput* comman
8282
debugf("HelpCommand entered");
8383
commandOutput->println(_F("Commands available are :"));
8484
for(unsigned idx = 0; idx < registeredCommands->count(); idx++) {
85-
commandOutput->printf(registeredCommands->valueAt(idx).commandName.c_str());
86-
commandOutput->printf(" | ");
87-
commandOutput->printf(registeredCommands->valueAt(idx).commandGroup.c_str());
88-
commandOutput->printf(" | ");
89-
commandOutput->printf(registeredCommands->valueAt(idx).commandHelp.c_str());
90-
commandOutput->printf("\r\n");
85+
commandOutput->print(registeredCommands->valueAt(idx).commandName.c_str());
86+
commandOutput->print(" | ");
87+
commandOutput->print(registeredCommands->valueAt(idx).commandGroup.c_str());
88+
commandOutput->print(" | ");
89+
commandOutput->print(registeredCommands->valueAt(idx).commandHelp.c_str());
90+
commandOutput->print("\r\n");
9191
}
9292
}
9393

0 commit comments

Comments
 (0)