Commit bf86d8b0 authored by Gary Wong's avatar Gary Wong
Browse files

Silence a spurious warning (don't complain about interswitch links

when all links are intraswitch).

Also, if the warning really DOES apply, send it to standard error instead.
parent 6c5a053a
......@@ -145,9 +145,9 @@ void annotate_rspec::annotate_element (const char* v_name, list<const char*>* li
static int gave_apology;
if( !gave_apology ) {
if( !links->empty() && !gave_apology ) {
gave_apology = 1;
cout << "Warning: unable to locate interfaces on "
cerr << "Warning: unable to locate interfaces on "
"switch/switch links; omitting those\n";
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment