f2bbab93f3
Plymouth package for Factory (resolved incorrect dependency) OBS-URL: https://build.opensuse.org/request/show/105684 OBS-URL: https://build.opensuse.org/package/show/Base:System/plymouth?expand=0&rev=1
27 lines
1.4 KiB
Plaintext
27 lines
1.4 KiB
Plaintext
From: Jeff Mahoney <jeffm@suse.com>
|
|
Subject: plymouth: Add line numbers to tracing output
|
|
|
|
The plymouth tracing output lists the function but there are many
|
|
cases in which the same message is issued from multiple places in the same
|
|
function, which makes debugging more difficult. This patch adds the line
|
|
number to the output to uniquely identify each site.
|
|
|
|
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
|
|
---
|
|
src/libply/ply-logger.h | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
--- a/src/libply/ply-logger.h
|
|
+++ b/src/libply/ply-logger.h
|
|
@@ -91,8 +91,8 @@ do
|
|
ply_logger_flush (logger); \
|
|
errno = _old_errno; \
|
|
ply_logger_inject (logger, \
|
|
- "[%s] %45.45s:" format "\r\n", \
|
|
- __FILE__, __func__, ##args); \
|
|
+ "[%s:%d] %45.45s:" format "\r\n", \
|
|
+ __FILE__, __LINE__, __func__, ##args); \
|
|
ply_logger_flush (logger); \
|
|
errno = _old_errno; \
|
|
} \
|