Skip to content

Commit

Permalink
Fix warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
mahge committed Aug 16, 2021
1 parent 85ef25d commit 0297520
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -76,7 +76,7 @@ int checkForDiscreteChanges(DATA *data, threadData_t *threadData)
modelica_string v1 = data->simulationInfo->stringVarsPre[i];
modelica_string v2 = data->localData[0]->stringVars[i];
if (0 != strcmp(MMC_STRINGDATA(v1),MMC_STRINGDATA(v2))) {
infoStreamPrint(LOG_EVENTS_V, 0, "discrete var changed: %s from %s to %s", modelData->stringVarsData[i].info.name, v1, v2);
infoStreamPrint(LOG_EVENTS_V, 0, "discrete var changed: %s from %s to %s", modelData->stringVarsData[i].info.name, MMC_STRINGDATA(v1), MMC_STRINGDATA(v2));
needToIterate = 1;
}
}
Expand Down
Expand Up @@ -414,11 +414,11 @@ void printClocks(CLOCK_INFO* clocksInfo, CLOCK_DATA* clocksData, SUBCLOCK_INFO*
for(i=0; i<nClocks; i++) {
infoStreamPrint(LOG_SYNCHRONOUS, 1, "Base clock %i", i+1);
infoStreamPrint(LOG_SYNCHRONOUS, 0, "Interval: %e", clocksData[i].interval);
infoStreamPrint(LOG_SYNCHRONOUS, 0, "Number of sub-clocks: %i", clocksInfo[i].nSubClocks);
infoStreamPrint(LOG_SYNCHRONOUS, 0, "Number of sub-clocks: %li", clocksInfo[i].nSubClocks);
for(j=0; j<clocksInfo[i].nSubClocks; j++,subClockCounter++) {
infoStreamPrint(LOG_SYNCHRONOUS, 1, "Sub-clock %i of base clock %i", j+1, i+1);
infoStreamPrint(LOG_SYNCHRONOUS, 0, "shift: %i/%i", subClocksInfo[subClockCounter].shift.m, subClocksInfo[subClockCounter].shift.n);
infoStreamPrint(LOG_SYNCHRONOUS, 0, "factor: %i/%i", subClocksInfo[subClockCounter].factor.m, subClocksInfo[subClockCounter].factor.n);
infoStreamPrint(LOG_SYNCHRONOUS, 0, "shift: %li/%li", subClocksInfo[subClockCounter].shift.m, subClocksInfo[subClockCounter].shift.n);
infoStreamPrint(LOG_SYNCHRONOUS, 0, "factor: %li/%li", subClocksInfo[subClockCounter].factor.m, subClocksInfo[subClockCounter].factor.n);
infoStreamPrint(LOG_SYNCHRONOUS, 0, "solverMethod: %s", subClocksInfo[subClockCounter].solverMethod);
infoStreamPrint(LOG_SYNCHRONOUS, 0, "holdEvents: %s", subClocksInfo[subClockCounter].holdEvents?"true":"false");
messageClose(LOG_SYNCHRONOUS);
Expand Down

0 comments on commit 0297520

Please sign in to comment.