[LIB]: Rename tag__print to tag__fprintf, for consistency
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
f411354f05
commit
70f9135467
|
@ -538,7 +538,7 @@ static void emit_function_defs(const char *fn)
|
|||
cus__emit_ftype_definitions(kprobes_cus, cu,
|
||||
&tag__function(f)->proto,
|
||||
fp_methods);
|
||||
tag__print(f, cu, NULL, NULL, 0, fp_methods);
|
||||
tag__fprintf(f, cu, NULL, NULL, 0, fp_methods);
|
||||
fputs(";\n", fp_methods);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2657,9 +2657,9 @@ static size_t variable__fprintf(const struct tag *tag, const struct cu *cu,
|
|||
return n;
|
||||
}
|
||||
|
||||
void tag__print(const struct tag *self, const struct cu *cu,
|
||||
const char *prefix, const char *suffix,
|
||||
uint8_t expand_types, FILE *fp)
|
||||
void tag__fprintf(const struct tag *self, const struct cu *cu,
|
||||
const char *prefix, const char *suffix,
|
||||
uint8_t expand_types, FILE *fp)
|
||||
{
|
||||
tag__print_decl_info(self, fp);
|
||||
|
||||
|
@ -3483,7 +3483,7 @@ void type__emit(struct tag *tag_self, struct cu *cu,
|
|||
class__find_holes(tag__class(tag_self), cu);
|
||||
|
||||
if (ctype->name != NULL || suffix != NULL || prefix != NULL) {
|
||||
tag__print(tag_self, cu, prefix, suffix, 0, fp);
|
||||
tag__fprintf(tag_self, cu, prefix, suffix, 0, fp);
|
||||
|
||||
if (tag_self->tag != DW_TAG_structure_type)
|
||||
fputc(';', fp);
|
||||
|
|
|
@ -271,9 +271,9 @@ extern size_t class__fprintf(const struct class *self, const struct cu *cu,
|
|||
uint8_t expand_types, uint8_t indent,
|
||||
size_t type_spacing, size_t name_spacing,
|
||||
int emit_stats, FILE *fp);
|
||||
extern void tag__print(const struct tag *self, const struct cu *cu,
|
||||
const char *prefix, const char *suffix,
|
||||
uint8_t expand_types, FILE *fp);
|
||||
extern void tag__fprintf(const struct tag *self, const struct cu *cu,
|
||||
const char *prefix, const char *suffix,
|
||||
uint8_t expand_types, FILE *fp);
|
||||
|
||||
extern const char *function__name(struct function *self, const struct cu *cu);
|
||||
extern void function__print_stats(const struct tag *tag_self,
|
||||
|
|
14
pahole.c
14
pahole.c
|
@ -141,10 +141,10 @@ static void class_formatter(const struct structure *self)
|
|||
|
||||
if (typedef_alias != NULL) {
|
||||
const struct type *tdef = tag__type(typedef_alias);
|
||||
tag__print(tag, self->cu, "typedef", tdef->name,
|
||||
expand_types, stdout);
|
||||
tag__fprintf(tag, self->cu, "typedef", tdef->name,
|
||||
expand_types, stdout);
|
||||
} else
|
||||
tag__print(tag, self->cu, NULL, NULL, expand_types, stdout);
|
||||
tag__fprintf(tag, self->cu, NULL, NULL, expand_types, stdout);
|
||||
|
||||
printf(" /* definitions: %u */\n", self->nr_files);
|
||||
putchar('\n');
|
||||
|
@ -507,8 +507,8 @@ int main(int argc, char *argv[])
|
|||
if (show_reorg_steps)
|
||||
puts("/* Final reorganized struct: */");
|
||||
}
|
||||
tag__print(class__tag(clone), s->cu,
|
||||
NULL, NULL, 0, stdout);
|
||||
tag__fprintf(class__tag(clone), s->cu, NULL, NULL, 0,
|
||||
stdout);
|
||||
if (savings != 0) {
|
||||
const size_t cacheline_savings =
|
||||
(tag__nr_cachelines(class__tag(s->class),
|
||||
|
@ -526,8 +526,8 @@ int main(int argc, char *argv[])
|
|||
puts("! */");
|
||||
}
|
||||
} else
|
||||
tag__print(class__tag(s->class), s->cu,
|
||||
NULL, NULL, expand_types, stdout);
|
||||
tag__fprintf(class__tag(s->class), s->cu, NULL, NULL,
|
||||
expand_types, stdout);
|
||||
} else
|
||||
print_classes(formatter);
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ static int emit_tag(struct tag *self, struct cu *cu, void *cookie __unused)
|
|||
if (self->tag == DW_TAG_structure_type)
|
||||
class__find_holes(tag__class(self), cu);
|
||||
|
||||
tag__print(self, cu, NULL, NULL, 0, stdout);
|
||||
tag__fprintf(self, cu, NULL, NULL, 0, stdout);
|
||||
|
||||
if (self->tag == DW_TAG_subprogram) {
|
||||
const struct function *fn = tag__function(self);
|
||||
|
|
6
pfunct.c
6
pfunct.c
|
@ -120,7 +120,7 @@ static void fn_stats_size_fmtr(const struct fn_stats *self)
|
|||
static void fn_stats_fmtr(const struct fn_stats *self)
|
||||
{
|
||||
if (verbose) {
|
||||
tag__print(self->tag, self->cu, NULL, NULL, 0, stdout);
|
||||
tag__fprintf(self->tag, self->cu, NULL, NULL, 0, stdout);
|
||||
putchar('\n');
|
||||
if (show_variables || show_inline_expansions)
|
||||
function__print_stats(self->tag, self->cu, stdout);
|
||||
|
@ -276,7 +276,7 @@ static int class_iterator(struct tag *tag, struct cu *cu, void *cookie)
|
|||
|
||||
if (ftype__has_parm_of_type(&function->proto, cookie, cu)) {
|
||||
if (verbose)
|
||||
tag__print(tag, cu, NULL, NULL, 0, stdout);
|
||||
tag__fprintf(tag, cu, NULL, NULL, 0, stdout);
|
||||
else
|
||||
fputs(function__name(function, cu), stdout);
|
||||
putchar('\n');
|
||||
|
@ -303,7 +303,7 @@ static int function_iterator(struct tag *tag, struct cu *cu, void *cookie)
|
|||
|
||||
function = tag__function(tag);
|
||||
if (strcmp(function__name(function, cu), cookie) == 0) {
|
||||
tag__print(tag, cu, NULL, NULL, 0, stdout);
|
||||
tag__fprintf(tag, cu, NULL, NULL, 0, stdout);
|
||||
putchar('\n');
|
||||
if (show_variables || show_inline_expansions)
|
||||
function__print_stats(tag, cu, stdout);
|
||||
|
|
|
@ -220,7 +220,7 @@ static void declaration_action__walk(const void *nodep, const VISIT which,
|
|||
|
||||
tag = extvar__tag(gvar);
|
||||
|
||||
tag__print(tag, gvar->cu, NULL, NULL, 0, stdout);
|
||||
tag__fprintf(tag, gvar->cu, NULL, NULL, 0, stdout);
|
||||
|
||||
for (pos = gvar->next; pos; pos = pos->next)
|
||||
count++;
|
||||
|
@ -252,7 +252,7 @@ static void function_action__walk(const void *nodep, const VISIT which,
|
|||
|
||||
tag = extfun__tag(gfun);
|
||||
|
||||
tag__print(tag, gfun->cu, NULL, NULL, 0, stdout);
|
||||
tag__fprintf(tag, gfun->cu, NULL, NULL, 0, stdout);
|
||||
|
||||
fputs("\n\n", stdout);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue