@@ -1405,7 +1405,7 @@ rosidl_runtime_c_type_description_utils_print_field_type(
1405
1405
field_type -> type_id , field_type -> capacity , field_type -> string_capacity );
1406
1406
1407
1407
if (field_type -> nested_type_name .data == NULL ) {
1408
- printf (" nested_type_name: %s \n" , field_type -> nested_type_name . data );
1408
+ printf (" nested_type_name: (null) \n" );
1409
1409
} else {
1410
1410
printf (" nested_type_name: \"%s\"\n" , field_type -> nested_type_name .data );
1411
1411
}
@@ -1419,13 +1419,13 @@ rosidl_runtime_c_type_description_utils_print_field(
1419
1419
printf ("[FIELD]\n" );
1420
1420
1421
1421
if (field -> name .data == NULL ) {
1422
- printf (" name: %s \n" , field -> name . data );
1422
+ printf (" name: (null) \n" );
1423
1423
} else {
1424
1424
printf (" name: \"%s\"\n" , field -> name .data );
1425
1425
}
1426
1426
1427
1427
if (field -> default_value .data == NULL ) {
1428
- printf (" default_value: %s \n" , field -> default_value . data );
1428
+ printf (" default_value: (null) \n" );
1429
1429
} else {
1430
1430
printf (" default_value: \"%s\"\n" , field -> default_value .data );
1431
1431
}
@@ -1442,7 +1442,7 @@ rosidl_runtime_c_type_description_utils_print_individual_type_description(
1442
1442
"\n[INDIVIDUAL TYPE DESCRIPTION] (Fields: %zd)\n" , individual_type_description -> fields .size );
1443
1443
1444
1444
if (individual_type_description -> type_name .data == NULL ) {
1445
- printf (" type_name: %s \n" , individual_type_description -> type_name . data );
1445
+ printf (" type_name: (null) \n" );
1446
1446
} else {
1447
1447
printf (" type_name: \"%s\"\n" , individual_type_description -> type_name .data );
1448
1448
}
@@ -1485,7 +1485,7 @@ rosidl_runtime_c_type_description_utils_print_field_map(const rcutils_hash_map_t
1485
1485
rcutils_ret_t status = rcutils_hash_map_get_next_key_and_data (hash_map , NULL , & key , & data );
1486
1486
while (RCUTILS_RET_OK == status ) {
1487
1487
if (key == NULL ) {
1488
- printf ("\n== KEY: %s ==\n" , key );
1488
+ printf ("\n== KEY: (null) ==\n" );
1489
1489
} else {
1490
1490
printf ("\n== KEY: \"%s\" ==\n" , key );
1491
1491
}
@@ -1504,7 +1504,7 @@ rosidl_runtime_c_type_description_utils_print_referenced_type_description_map(
1504
1504
rcutils_ret_t status = rcutils_hash_map_get_next_key_and_data (hash_map , NULL , & key , & data );
1505
1505
while (RCUTILS_RET_OK == status ) {
1506
1506
if (key == NULL ) {
1507
- printf ("\n== KEY: %s ==\n" , key );
1507
+ printf ("\n== KEY: (null) ==\n" );
1508
1508
} else {
1509
1509
printf ("\n== KEY: \"%s\" ==\n" , key );
1510
1510
}
0 commit comments