Skip to content

Instantly share code, notes, and snippets.

@kerneltoast
Created December 16, 2020 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kerneltoast/b8237c6a71832774912ae14a19401a76 to your computer and use it in GitHub Desktop.
Save kerneltoast/b8237c6a71832774912ae14a19401a76 to your computer and use it in GitHub Desktop.
--- a/session.cxx
+++ b/session.cxx
@@ -2391,9 +2391,9 @@ systemtap_session::print_error (const semantic_error& se)
seen_errors[se.errsrc_chain()]++;
cerr << build_error_msg(se);
for (const semantic_error *e = &se; e != NULL; e = e->get_chain())
- if (verbose > 1 || seen_errors[e->errsrc] < 1) // dupe-eliminate chained errors too
+ if (verbose > 1 || seen_errors[e->errsrc_chain()] < 1) // dupe-eliminate chained errors too
{
- seen_errors[e->errsrc]++;
+ seen_errors[e->errsrc_chain()]++;
cerr << build_error_msg(*e);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment