Blame 0167-ccpp-correct-comments-mentioning-TID.patch

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