Skip to content

Commit

Permalink
Tone down a couple warnings
Browse files Browse the repository at this point in the history
There have been a few cases of people thinking these are more important than they actually are
  • Loading branch information
lethosor committed Aug 2, 2020
1 parent b1363af commit bb66ef3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/DataDefs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ virtual_identity *virtual_identity::find(void *vtable)
return p;
}

std::cerr << "UNKNOWN CLASS '" << name << "': vtable = 0x"
std::cerr << "Class not in symbols.xml: '" << name << "': vtable = 0x"
<< std::hex << uintptr_t(vtable) << std::dec << std::endl;

known[vtable] = NULL;
Expand Down
6 changes: 5 additions & 1 deletion library/PluginManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,12 @@ bool Plugin::load(color_ostream &con)
if (plug_git_desc_ptr)
{
if (strcmp(dfhack_git_desc, plug_git_desc) != 0)
con.printerr("Warning: Plugin %s compiled for DFHack %s, running DFHack %s\n",
{
std::string msg = stl_sprintf("Warning: Plugin %s compiled for DFHack %s, running DFHack %s\n",
*plug_name, plug_git_desc, dfhack_git_desc);
con << msg;
cerr << msg;
}
}
else
con.printerr("Warning: Plugin %s missing git information\n", *plug_name);
Expand Down

0 comments on commit bb66ef3

Please sign in to comment.