47a88a
From 6ff643d615b41a53236255e7d27a43aa35bd24f8 Mon Sep 17 00:00:00 2001
47a88a
From: Jakub Filak <jfilak@redhat.com>
47a88a
Date: Wed, 9 Sep 2015 14:09:57 +0200
47a88a
Subject: [PATCH] ccpp: correct comments mentioning TID
47a88a
47a88a
abrt-hook-ccpp uses '%I'.
47a88a
47a88a
See commit 25ca1b05529d7ce95a3948f45391e22ab0fd9744 for details.
47a88a
47a88a
Related: rhbz#1252590
47a88a
47a88a
Signed-off-by: Jakub Filak <jfilak@redhat.com>
47a88a
---
47a88a
 src/hooks/abrt-hook-ccpp.c | 6 +++---
47a88a
 1 file changed, 3 insertions(+), 3 deletions(-)
47a88a
47a88a
diff --git a/src/hooks/abrt-hook-ccpp.c b/src/hooks/abrt-hook-ccpp.c
47a88a
index 5b277af..f5200dc 100644
47a88a
--- a/src/hooks/abrt-hook-ccpp.c
47a88a
+++ b/src/hooks/abrt-hook-ccpp.c
47a88a
@@ -160,13 +160,13 @@ static struct dump_dir *dd;
47a88a
  * %g - gid
47a88a
  * %t - UNIX time of dump
47a88a
  * %e - executable filename
47a88a
- * %i - crash thread tid
47a88a
+ * %I - global crash thread tid
47a88a
  * %% - output one "%"
47a88a
  */
47a88a
 /* Hook must be installed with exactly the same sequence of %c specifiers.
47a88a
  * Last one, %h, may be omitted (we can find it out).
47a88a
  */
47a88a
-static const char percent_specifiers[] = "%scpugtei";
47a88a
+static const char percent_specifiers[] = "%scpugteI";
47a88a
 static char *core_basename = (char*) "core";
47a88a
 
47a88a
 static char* get_executable(pid_t pid, int *fd_p)
47a88a
@@ -688,7 +688,7 @@ int main(int argc, char** argv)
47a88a
 
47a88a
     if (argc < 8)
47a88a
     {
47a88a
-        /* percent specifier:         %s   %c              %p  %u  %g  %t   %e          %i */
47a88a
+        /* percent specifier:         %s   %c              %p  %u  %g  %t   %e          %I */
47a88a
         /* argv:                  [0] [1]  [2]             [3] [4] [5] [6]  [7]         [8]*/
47a88a
         error_msg_and_die("Usage: %s SIGNO CORE_SIZE_LIMIT PID UID GID TIME BINARY_NAME [TID]", argv[0]);
47a88a
     }
47a88a
-- 
47a88a
2.4.3
47a88a