Skip to content

Commit 7962e50

Browse files
committed
Fixed issue when reporting unsupported feature setting the access scope
1 parent 3612d52 commit 7962e50

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

srcCxx/shape_main.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ class ShapeOptions {
481481
logger.log_message("warning: --additional-payload-size ignored on subscriber applications", Verbosity::ERROR);
482482
}
483483
if (!coherent_set_enabled && !ordered_access_enabled && coherent_set_access_scope_set) {
484-
logger.log_message("warning: --access-scope ignored because not coherent, or ordered access enabled", Verbosity::ERROR);
484+
logger.log_message("warning: --access-scope set but not coherent, or ordered access enabled", Verbosity::ERROR);
485485
}
486486
if (size_modulo > 0 && shapesize != 0) {
487487
logger.log_message("warning: --size-modulo has no effect unless shapesize (-z) is set to 0", Verbosity::ERROR);
@@ -1352,8 +1352,8 @@ class ShapeApplication {
13521352
logger.log_message(" Presentation Ordered Access = not supported", Verbosity::ERROR);
13531353
return false;
13541354
}
1355-
if ((options->coherent_set_enabled || options->ordered_access_enabled)
1356-
&& (options->coherent_set_access_scope != INSTANCE_PRESENTATION_QOS)) {
1355+
if (options->coherent_set_access_scope_set
1356+
&& options->coherent_set_access_scope != INSTANCE_PRESENTATION_QOS) {
13571357
logger.log_message(" Presentation Access Scope = not supported", Verbosity::ERROR);
13581358
return false;
13591359
}
@@ -1578,7 +1578,7 @@ class ShapeApplication {
15781578
logger.log_message(" Presentation Ordered Access = not supported", Verbosity::ERROR);
15791579
return false;
15801580
}
1581-
if ((options->coherent_set_enabled || options->ordered_access_enabled)
1581+
if (options->coherent_set_access_scope_set
15821582
&& (options->coherent_set_access_scope != INSTANCE_PRESENTATION_QOS)) {
15831583
logger.log_message(" Presentation Access Scope = not supported", Verbosity::ERROR);
15841584
return false;

0 commit comments

Comments
 (0)