doczkal / rpms / abrt

Forked from rpms/abrt 4 years ago
Clone

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

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