summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authorDima Kogan <dima@secretsauce.net>2014-05-03 01:08:40 -0700
committerChanho Park <chanho61.park@samsung.com>2014-08-22 20:38:26 +0900
commit3c2f28cc0082c3acc1524d0c76646ecd1da686e7 (patch)
tree433d4f6cdbe1d6b898300bf060f8b56206ffb7d0 /proc.c
parentaa23d6cab4478e3ea1eb953648eeae5ff77dcb52 (diff)
downloadltrace-3c2f28cc0082c3acc1524d0c76646ecd1da686e7.tar.gz
ltrace-3c2f28cc0082c3acc1524d0c76646ecd1da686e7.tar.bz2
ltrace-3c2f28cc0082c3acc1524d0c76646ecd1da686e7.zip
whitespace style change
- Tabs should be 8 characters. - Lines should be no longer than 80 characters - Pointer star belongs to the variable, not the type - Lines shouldn't be formatted into tables arbitrarily - if and while should get a space before the paren
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/proc.c b/proc.c
index f08f947..7c370a3 100644
--- a/proc.c
+++ b/proc.c
@@ -906,21 +906,21 @@ proc_add_library(struct process *proc, struct library *lib)
dwfl = dwfl_begin(&proc_callbacks);
if (dwfl == NULL)
fprintf(stderr,
- "Couldn't initialize libdwfl unwinding "
- "for process %d: %s\n", leader->pid,
- dwfl_errmsg (-1));
+ "Couldn't initialize libdwfl unwinding "
+ "for process %d: %s\n", leader->pid,
+ dwfl_errmsg (-1));
}
if (dwfl != NULL) {
dwfl_report_begin_add(dwfl);
if (dwfl_report_elf(dwfl, lib->soname,
- lib->pathname, -1,
- (GElf_Addr) lib->base,
- false) == NULL)
+ lib->pathname, -1,
+ (GElf_Addr) lib->base,
+ false) == NULL)
fprintf(stderr,
- "dwfl_report_elf %s@%p (%s) %d: %s\n",
- lib->soname, lib->base, lib->pathname,
- proc->pid, dwfl_errmsg (-1));
+ "dwfl_report_elf %s@%p (%s) %d: %s\n",
+ lib->soname, lib->base, lib->pathname,
+ proc->pid, dwfl_errmsg (-1));
dwfl_report_end(dwfl, NULL, NULL);
if (options.bt_depth > 0) {
@@ -938,8 +938,8 @@ proc_add_library(struct process *proc, struct library *lib)
else
msg = strerror(r);
fprintf(stderr, "Couldn't initialize "
- "libdwfl (for unwinding, prototype import) for "
- "process %d: %s\n",
+ "libdwfl (unwinding, prototype "
+ "import) for process %d: %s\n",
leader->pid, msg);
}
}