Skip to content

Commit

Permalink
Log which modelid / manufacturer names lookup DDFs (#7788)
Browse files Browse the repository at this point in the history
  • Loading branch information
manup authored May 27, 2024
1 parent 770c3b1 commit c642328
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7032,6 +7032,20 @@ std::vector<DB_IdentifierPair> DB_LoadIdentifierPairs()

DeRestPluginPrivate::instance()->closeDb();

if (DBG_IsEnabled(DBG_DDF))
{
for (size_t i = 0; i < result.size(); i++)
{
AT_Atom mfname = AT_GetAtomByIndex({result[i].mfnameAtomIndex});
AT_Atom modelid = AT_GetAtomByIndex({result[i].modelIdAtomIndex});

U_ASSERT(mfname.data && mfname.len);
U_ASSERT(modelid.data && modelid.len);

DBG_Printf(DBG_DDF, "DDF identifier pair: %s | %s\n", (const char*)mfname.data, (const char*)modelid.data);
}
}

return result;
}

Expand Down

0 comments on commit c642328

Please sign in to comment.