astyle shift module documentation to bottom of files

- Astyle chokes on the module description strings, so for now we can keep them near the bottom of each file.
This commit is contained in:
Daniel Agar
2019-11-02 10:58:47 -04:00
committed by GitHub
parent f0ac270174
commit a475d71ca9
16 changed files with 451 additions and 460 deletions
+22 -22
View File
@@ -46,28 +46,6 @@ extern "C" {
__EXPORT int dmesg_main(int argc, char *argv[]);
}
static void
usage()
{
PRINT_MODULE_DESCRIPTION(
R"DESCR_STR(
### Description
Command-line tool to show bootup console messages.
Note that output from NuttX's work queues and syslog are not captured.
### Examples
Keep printing all messages in the background:
$ dmesg -f &
)DESCR_STR");
PRINT_MODULE_USAGE_NAME("dmesg", "system");
PRINT_MODULE_USAGE_PARAM_FLAG('f', "Follow: wait for new messages", true);
}
int
dmesg_main(int argc, char *argv[])
{
@@ -93,3 +71,25 @@ dmesg_main(int argc, char *argv[])
return 0;
}
static void
usage()
{
PRINT_MODULE_DESCRIPTION(
R"DESCR_STR(
### Description
Command-line tool to show bootup console messages.
Note that output from NuttX's work queues and syslog are not captured.
### Examples
Keep printing all messages in the background:
$ dmesg -f &
)DESCR_STR");
PRINT_MODULE_USAGE_NAME("dmesg", "system");
PRINT_MODULE_USAGE_PARAM_FLAG('f', "Follow: wait for new messages", true);
}