diff options
author | Martin Burnicki <martin.burnicki@meinberg.de> | 2021-04-29 15:35:37 +0200 |
---|---|---|
committer | Martin Burnicki <martin.burnicki@meinberg.de> | 2021-04-29 15:35:37 +0200 |
commit | 9b0de36ef2dfa83718a6ebcd305b60ff5996a05b (patch) | |
tree | 6aa62a240de4fa1f8c46df279ed496e215943623 /mbgxhrtime | |
parent | 6572a5a2d2c893c0978b033e1c99913544d36915 (diff) | |
download | mbgtools-lx-9b0de36ef2dfa83718a6ebcd305b60ff5996a05b.tar.gz mbgtools-lx-9b0de36ef2dfa83718a6ebcd305b60ff5996a05b.zip |
Common handling of year limt, and other improvements
Move common definitions for year linit to mbgutil.h, and use these
throughout the project.
Update printing of usage information.
Removed obsolete macro _mbg_strncpy().
Use bool type for some flag variables.
Diffstat (limited to 'mbgxhrtime')
-rw-r--r-- | mbgxhrtime/mbgxhrtime.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/mbgxhrtime/mbgxhrtime.c b/mbgxhrtime/mbgxhrtime.c index dee2263..19240f7 100644 --- a/mbgxhrtime/mbgxhrtime.c +++ b/mbgxhrtime/mbgxhrtime.c @@ -1,7 +1,7 @@ /************************************************************************** * - * $Id: mbgxhrtime.c 1.9 2021/03/21 22:40:58 martin REL_M $ + * $Id: mbgxhrtime.c 1.10 2021/04/12 21:57:48 martin REL_M $ * * Description: * Main file for mbgxhrtime program which demonstrates how to retrieve @@ -41,6 +41,8 @@ * * ----------------------------------------------------------------------- * $Log: mbgxhrtime.c $ + * Revision 1.10 2021/04/12 21:57:48 martin + * Updated printing of usage information. * Revision 1.9 2021/03/21 22:40:58 martin * Updated some comments. * Revision 1.8 2021/03/12 12:32:08 martin @@ -291,9 +293,9 @@ void usage( void ) "This works only for devices which support high resolution time (HR time)." ); mbg_print_help_options(); - mbg_print_opt_info( "-c", "run continuously" ); - mbg_print_opt_info( "-n num", "run num loops" ); - mbg_print_device_options(); + mbg_print_opt_info( "-c", "Run continuously" ); + mbg_print_opt_info( "-n num", "Run num loops" ); + mbg_print_device_options( DEV_OPT_PRINT_BUS_LEVEL ); puts( "" ); } // usage @@ -323,7 +325,7 @@ int main( int argc, char *argv[] ) case 'h': case '?': default: - must_print_usage = 1; + must_print_usage = true; } } |