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