diff options
Diffstat (limited to 'recipes-containers/lxc/files/logs-optionally-use-base-filenames-to-report-src-fil.patch')
-rw-r--r-- | recipes-containers/lxc/files/logs-optionally-use-base-filenames-to-report-src-fil.patch | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/recipes-containers/lxc/files/logs-optionally-use-base-filenames-to-report-src-fil.patch b/recipes-containers/lxc/files/logs-optionally-use-base-filenames-to-report-src-fil.patch index f430601a..648193b4 100644 --- a/recipes-containers/lxc/files/logs-optionally-use-base-filenames-to-report-src-fil.patch +++ b/recipes-containers/lxc/files/logs-optionally-use-base-filenames-to-report-src-fil.patch | |||
@@ -1,8 +1,9 @@ | |||
1 | From 4729d0f4c4d1dacd150ddfd7061dda875eb94e34 Mon Sep 17 00:00:00 2001 | 1 | From c50ddb2b2cf22a29e4c671b1efbd338eeba694aa Mon Sep 17 00:00:00 2001 |
2 | Message-Id: <4729d0f4c4d1dacd150ddfd7061dda875eb94e34.1443216870.git.Jim.Somerville@windriver.com> | ||
3 | From: Jim Somerville <Jim.Somerville@windriver.com> | 2 | From: Jim Somerville <Jim.Somerville@windriver.com> |
4 | Date: Fri, 25 Sep 2015 15:08:17 -0400 | 3 | Date: Fri, 25 Sep 2015 15:08:17 -0400 |
5 | Subject: [PATCH 1/1] logs: optionally use base filenames to report src files | 4 | Subject: [PATCH] logs: optionally use base filenames to report src files |
5 | |||
6 | Message-Id: <4729d0f4c4d1dacd150ddfd7061dda875eb94e34.1443216870.git.Jim.Somerville@windriver.com> | ||
6 | 7 | ||
7 | Problem: Logs are nice in that they report the source file, | 8 | Problem: Logs are nice in that they report the source file, |
8 | routine, and line number where an issue occurs. But the | 9 | routine, and line number where an issue occurs. But the |
@@ -22,16 +23,17 @@ machinery, and that may still be the absolute pathname to | |||
22 | the file. | 23 | the file. |
23 | 24 | ||
24 | Signed-off-by: Jim Somerville <Jim.Somerville@windriver.com> | 25 | Signed-off-by: Jim Somerville <Jim.Somerville@windriver.com> |
26 | |||
25 | --- | 27 | --- |
26 | configure.ac | 9 +++++++++ | 28 | configure.ac | 9 +++++++++ |
27 | src/lxc/log.h | 5 +++++ | 29 | src/lxc/log.h | 5 +++++ |
28 | 2 files changed, 14 insertions(+) | 30 | 2 files changed, 14 insertions(+) |
29 | 31 | ||
30 | diff --git a/configure.ac b/configure.ac | 32 | diff --git a/configure.ac b/configure.ac |
31 | index deba90b..c1ed67b 100644 | 33 | index 74b976a..9c561f7 100644 |
32 | --- a/configure.ac | 34 | --- a/configure.ac |
33 | +++ b/configure.ac | 35 | +++ b/configure.ac |
34 | @@ -356,6 +356,15 @@ AM_COND_IF([ENABLE_PYTHON], | 36 | @@ -356,6 +356,15 @@ AC_ARG_ENABLE([examples], |
35 | [], [enable_examples=yes]) | 37 | [], [enable_examples=yes]) |
36 | AM_CONDITIONAL([ENABLE_EXAMPLES], [test "x$enable_examples" = "xyes"]) | 38 | AM_CONDITIONAL([ENABLE_EXAMPLES], [test "x$enable_examples" = "xyes"]) |
37 | 39 | ||
@@ -48,11 +50,11 @@ index deba90b..c1ed67b 100644 | |||
48 | AC_ARG_ENABLE([mutex-debugging], | 50 | AC_ARG_ENABLE([mutex-debugging], |
49 | [AC_HELP_STRING([--enable-mutex-debugging], [Makes mutexes to report error and provide stack trace [default=no]])], | 51 | [AC_HELP_STRING([--enable-mutex-debugging], [Makes mutexes to report error and provide stack trace [default=no]])], |
50 | diff --git a/src/lxc/log.h b/src/lxc/log.h | 52 | diff --git a/src/lxc/log.h b/src/lxc/log.h |
51 | index 76bd4df..4365977 100644 | 53 | index 4654fd9..6885d78 100644 |
52 | --- a/src/lxc/log.h | 54 | --- a/src/lxc/log.h |
53 | +++ b/src/lxc/log.h | 55 | +++ b/src/lxc/log.h |
54 | @@ -77,8 +77,13 @@ struct lxc_log_locinfo { | 56 | @@ -77,8 +77,13 @@ struct lxc_log_locinfo { |
55 | int line; | 57 | int line; |
56 | }; | 58 | }; |
57 | 59 | ||
58 | +#ifdef LXC_LOG_USE_BASENAME | 60 | +#ifdef LXC_LOG_USE_BASENAME |
@@ -65,6 +67,3 @@ index 76bd4df..4365977 100644 | |||
65 | 67 | ||
66 | /* brief logging event object */ | 68 | /* brief logging event object */ |
67 | struct lxc_log_event { | 69 | struct lxc_log_event { |
68 | -- | ||
69 | 1.8.3.2 | ||
70 | |||