Skip to content

CID1508993: Invalid type in argument to printf format specifier #10222

@maskit

Description

@maskit
150    if (unlikely(api_info->tsremap_version < TSREMAP_VERSION)) {
   	
CID 1508993 (#2 of 2): Invalid type in argument to printf format specifier (PRINTF_ARGS)
invalid_type: Argument api_info->tsremap_version >> 16 to format specifier %d was expected to have type int but has type unsigned long. [[show details](https://scan6.scan.coverity.com/eventId=34625644-0&modelId=34625644-0&fileInstanceId=162997152&filePath=%2Fexample%2Fplugins%2Fc-api%2Fremap%2Fremap.cc&fileStart=120&fileEnd=131)]
151      return store_my_error_message(TS_ERROR, errbuf, errbuf_size, "Incorrect API version %d.%d", (api_info->tsremap_version >> 16),
     	CID 1508993 (#1 of 2): Invalid type in argument to printf format specifier (PRINTF_ARGS) [[select issue](https://scan6.scan.coverity.com/defectInstanceId=34625542&fileInstanceId=157340154&mergedDefectId=1508993)]
152                                    (api_info->tsremap_version & 0xffff));
153    }

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions