aboutsummaryrefslogtreecommitdiff
path: root/src/tools/linux/pid2md/pid2md.cc
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2021-03-25 18:32:03 -0700
committerLei Zhang <thestig@chromium.org>2021-04-07 20:37:52 +0000
commitc484031f1f199ee53567241426efffee49008f82 (patch)
treee9d59d56994e16a29c748982d76b863fd8f2a264 /src/tools/linux/pid2md/pid2md.cc
parent3bea2815bfea6e641d50aad15bde2c494ef8f34b (diff)
downloadgoogle-breakpad-c484031f1f199ee53567241426efffee49008f82.tar.gz
Consistently call BaseName() in various Usage() functions.
Make various tools print just their names as part of the usage instructions, rather than the full path. Also fix a missing space in the dump_syms usage output. Change-Id: I2b796678cd47e7dbabcc03df2b57cdc3420c008c Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/2787678 Reviewed-by: Mike Frysinger <vapier@chromium.org>
Diffstat (limited to 'src/tools/linux/pid2md/pid2md.cc')
-rw-r--r--src/tools/linux/pid2md/pid2md.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/linux/pid2md/pid2md.cc b/src/tools/linux/pid2md/pid2md.cc
index 0481997e..f9cc291e 100644
--- a/src/tools/linux/pid2md/pid2md.cc
+++ b/src/tools/linux/pid2md/pid2md.cc
@@ -34,10 +34,12 @@
#include <unistd.h>
#include "client/linux/minidump_writer/minidump_writer.h"
+#include "common/path_helper.h"
int main(int argc, char* argv[]) {
if (argc != 3) {
- fprintf(stderr, "Usage: %s <process id> <minidump file>\n\n", argv[0]);
+ fprintf(stderr, "Usage: %s <process id> <minidump file>\n\n",
+ google_breakpad::BaseName(argv[0]).c_str());
fprintf(stderr,
"A tool to generate a minidump from a running process. The process "
"resumes its\nactivity once the operation is completed. Permission "