IBM Support

IBM Rhapsody type name expansion conflicts with C/C++ printf format specifier

Troubleshooting


Problem

IBM Rhapsody model element types use %s so that the type name can be referenced in code generation.
On the left the name of the model element type is expanded using %s in the generated code. On the right the %s used in the printf is also erroneously expanded causing the name of the type to be hardcoded in the macro output, instead of the intended #fun argument.
image 8467

Document Location

Worldwide

[{"Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"ARM Category":[{"code":"a8m50000000CjTuAAK","label":"Rhapsody-\u003ECode-\u003EGeneration"}],"ARM Case Number":"TS005043526","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
27 May 2022

UID

ibm16416483