diff options
author | Martin Burnicki <martin.burnicki@meinberg.de> | 2022-04-01 17:11:39 +0200 |
---|---|---|
committer | Martin Burnicki <martin.burnicki@meinberg.de> | 2022-07-08 17:21:00 +0200 |
commit | 87bc35d99bf4b1a27f9b903dad71755eb3d6c311 (patch) | |
tree | cd842598112568e8a2054f49838b67e02cae0f75 | |
parent | 73c9c9a8691e580c937abaab8aba1e91d6776b94 (diff) | |
download | mbgtools-win-87bc35d99bf4b1a27f9b903dad71755eb3d6c311.tar.gz mbgtools-win-87bc35d99bf4b1a27f9b903dad71755eb3d6c311.zip |
Preferably print the RECEIVER_INFO's model_name as device name
-rw-r--r-- | mbglib/common/toolutil.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mbglib/common/toolutil.c b/mbglib/common/toolutil.c index 266d33d..d0e2fab 100644 --- a/mbglib/common/toolutil.c +++ b/mbglib/common/toolutil.c @@ -1,14 +1,17 @@ /************************************************************************** * - * $Id: toolutil.c 1.23 2021/11/15 17:08:30Z martin.burnicki REL_M $ + * $Id: toolutil.c 1.24 2022/04/01 15:00:12Z martin.burnicki REL_M $ * * Common functions that can be used with Meinberg command line * utility programs. * * ----------------------------------------------------------------------- * $Log: toolutil.c $ - * Revision 1.23 2021/11/15 17:08:30Z martin.burnicki + * Revision 1.24 2022/04/01 15:00:12Z martin.burnicki + * Print the RECEIVER_INFO's model_name as device name + * in mbg_get_show_dev_info(). + * Revision 1.23 2021/11/15 17:08:30 martin.burnicki * Improved printing of usage information. * Revision 1.22 2021/11/08 21:37:29 martin.burnicki * SYN1588 devices are now enumerated after native Meinberg devices. @@ -506,7 +509,7 @@ int mbg_get_show_dev_info( MBG_DEV_HANDLE dh, const char *dev_name, PCPS_DEV *p_ goto out; - printf( "%s", _pcps_type_name( p_dev ) ); + printf( "%s", ri.model_name ); if ( strlen( _pcps_sernum( p_dev ) ) && strcmp( _pcps_sernum( p_dev ), "N/A" ) ) |