diff options
author | Tim Moore <moore@blackbox.bricoworks.com> | 2008-06-11 14:46:34 +0200 |
---|---|---|
committer | Tim Moore <moore@blackbox.bricoworks.com> | 2008-06-11 14:49:20 +0200 |
commit | ba53ea9f51453154bca13c57988a17e009e80476 (patch) | |
tree | 32f1abdc0a53b52b61b55cba2a50a29e0f2362e9 /tapsets.cxx | |
parent | 86bf665eac22efa78936a3059e7bc90ee10dcf4b (diff) | |
download | systemtap-steved-ba53ea9f51453154bca13c57988a17e009e80476.tar.gz systemtap-steved-ba53ea9f51453154bca13c57988a17e009e80476.tar.xz systemtap-steved-ba53ea9f51453154bca13c57988a17e009e80476.zip |
Fix some logic inversions with dwfl_assert.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r-- | tapsets.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tapsets.cxx b/tapsets.cxx index f0809978..a571ea0d 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -1530,9 +1530,9 @@ struct dwflpp Dwfl_Module *mod = dwfl_addrmodule (dwfl, address); dwfl_assert ("dwfl_addrmodule", mod); int n = dwfl_module_relocations (mod); - dwfl_assert ("dwfl_module_relocations", n); + dwfl_assert ("dwfl_module_relocations", n >= 0); int i = dwfl_module_relocate_address (mod, &address); - dwfl_assert ("dwfl_module_relocate_address", i); + dwfl_assert ("dwfl_module_relocate_address", i >= 0); const char *modname = dwfl_module_info (mod, NULL, NULL, NULL, NULL, NULL, NULL, NULL); dwfl_assert ("dwfl_module_info", modname); @@ -1540,7 +1540,7 @@ struct dwflpp if (n > 0 && !(n == 1 && secname == NULL)) { - dwfl_assert ("dwfl_module_relocation_info", secname == NULL); + dwfl_assert ("dwfl_module_relocation_info", secname); if (n > 1 || secname[0] != '\0') { // This gives us the module name, and section name within the |