mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 16:53:34 +08:00
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:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user