[ltrace-commits] 27/40: fixed broken diagnostic output
Petr Machata
pmachata-guest at moszumanska.debian.org
Sun May 11 22:38:55 UTC 2014
This is an automated email from the git hooks/post-receive script.
pmachata-guest pushed a commit to branch master
in repository ltrace.
commit 28434292f74308877fcfe73cce02eb95a64c30cc
Author: Dima Kogan <dima at secretsauce.net>
Date: Wed Apr 30 04:10:52 2014 -0700
fixed broken diagnostic output
---
dwarf_prototypes.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/dwarf_prototypes.c b/dwarf_prototypes.c
index 48d2673..ef71f9e 100644
--- a/dwarf_prototypes.c
+++ b/dwarf_prototypes.c
@@ -339,7 +339,7 @@ static struct arg_type_info* get_enum(Dwarf_Die* parent, struct dict* type_dieof
result = calloc(1, sizeof(struct arg_type_info));
if (result == NULL) {
- complain(type_die, "alloc error");
+ complain(parent, "alloc error");
CLEANUP_AND_RETURN_ERROR(NULL);
}
@@ -467,7 +467,7 @@ static struct arg_type_info* get_array( Dwarf_Die* parent, struct protolib* plib
result = calloc(1, sizeof(struct arg_type_info));
if (result == NULL) {
- complain(type_die, "alloc error");
+ complain(parent, "alloc error");
CLEANUP_AND_RETURN_ERROR(NULL);
}
@@ -582,7 +582,7 @@ static struct arg_type_info* get_structure(Dwarf_Die* parent, struct protolib* p
result = calloc(1, sizeof(struct arg_type_info));
if (result == NULL) {
- complain(type_die, "alloc error");
+ complain(parent, "alloc error");
CLEANUP_AND_RETURN_ERROR(NULL);
}
type_init_struct(result);
@@ -717,7 +717,7 @@ static struct arg_type_info* get_type(int* newly_allocated_result,
}
dict_insert(type_dieoffset_hash, &die_offset, &result);
pointee = get_type(&newly_allocated_pointee,
- &next_die, plib, type_dieoffset_hash);
+ &next_die, plib, type_dieoffset_hash);
if(pointee == NULL)
CLEANUP_AND_RETURN_ERROR(NULL);
@@ -814,7 +814,7 @@ static struct prototype* get_prototype( Dwarf_Die* subroutine, struct protolib*
result = calloc(1, sizeof(struct prototype));
if (result == NULL) {
- complain(die, "couldn't alloc prototype");
+ complain(subroutine, "couldn't alloc prototype");
CLEANUP_AND_RETURN_ERROR(NULL);
}
prototype_init(result);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/ltrace.git
More information about the ltrace-commits
mailing list