summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/boot/common/commands.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/boot/common/commands.c b/sys/boot/common/commands.c
index aa81abc..4a5ebfa 100644
--- a/sys/boot/common/commands.c
+++ b/sys/boot/common/commands.c
@@ -176,8 +176,10 @@ command_help(int argc, char *argv[])
((subtopic != NULL) && (s != NULL) && !strcmp(subtopic, s))) {
/* exact match, print text */
while((fgetstr(buf, 80, hfd) >= 0) && (buf[0] != '#')) {
- pager_output(buf);
- pager_output("\n");
+ if (pager_output(buf))
+ break;
+ if (pager_output("\n"))
+ break;
}
} else if ((subtopic == NULL) && (s != NULL)) {
/* topic match, list subtopics */
OpenPOWER on IntegriCloud