shell: Fix help topic header

This commit is contained in:
Sebastian Huber
2014-11-18 12:03:11 +01:00
parent 7eada71e1b
commit 478455e0ea

View File

@@ -96,17 +96,16 @@ static int rtems_shell_help(
lines = 16;
if (argc<2) {
printf("help: ('r' repeat last cmd - 'e' edit last cmd)\n"
" TOPIC? The topics are\n");
printf("help: The topics are\n");
topic = rtems_shell_first_topic;
col = 0;
while (topic) {
if (!col){
col = printf(" %s",topic->topic);
col = printf(" %s",topic->topic);
} else {
if ((col+strlen(topic->topic)+2)>78){
printf("\n");
col = printf(" %s",topic->topic);
col = printf(" %s",topic->topic);
} else {
col+= printf(", %s",topic->topic);
}