Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libpulp for openSUSE:Factory checked in at 2024-12-08 11:37:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libpulp (Old) and /work/SRC/openSUSE:Factory/.libpulp.new.21547 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libpulp" Sun Dec 8 11:37:51 2024 rev:4 rq:1228987 version:0.3.7 Changes: -------- --- /work/SRC/openSUSE:Factory/libpulp/libpulp.changes 2024-12-05 17:11:10.239949861 +0100 +++ /work/SRC/openSUSE:Factory/.libpulp.new.21547/libpulp.changes 2024-12-08 11:38:43.997616864 +0100 @@ -1,0 +2,5 @@ +Sat Dec 7 00:59:13 UTC 2024 - Giuliano Belinassi <giuliano.belina...@suse.com> + +- Add timestamps on each message. + +------------------------------------------------------------------- @@ -4,2 +9,2 @@ -- Update rpm-helper script for SLE Micro (bsc#1228406). -- Update macros.userspace-livepatch for SLE Micro (bsc#1228406). +- Update rpm-helper script for SLE Micro (bsc#1228879). +- Update macros.userspace-livepatch for SLE Micro (bsc#1228879). @@ -11 +16 @@ -- Add SELinux policy for /var/livepatches (bsc#1228406). +- Add SELinux policy for /var/livepatches (bsc#1228879). ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libpulp-0.3.7.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libpulp-0.3.7/lib/msg_queue.c new/libpulp-0.3.7/lib/msg_queue.c --- old/libpulp-0.3.7/lib/msg_queue.c 2024-10-30 17:01:14.000000000 +0100 +++ new/libpulp-0.3.7/lib/msg_queue.c 2024-12-07 01:07:15.000000000 +0100 @@ -25,6 +25,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <time.h> /* Create an externally visible msg_queue object that will be read with ptrace. * It will be read by ulp_messages (tools/messages.c) using ptrace. */ @@ -139,6 +140,17 @@ void ulp_warn(const char *format, ...) { + time_t rawtime; + struct tm *timeinfo, local_tm; + char timestamp[32]; + + time(&rawtime); + timeinfo = localtime_r(&rawtime, &local_tm); + + size_t n = strftime(timestamp, 32, "[%Y-%m-%d %H:%M:%S] ", timeinfo); + if (n > 0) + msgq_strpush(timestamp, n + 1); + va_list args; va_start(args, format); msgq_vpush(format, args); @@ -148,6 +160,17 @@ void ulp_debug(const char *format, ...) { + time_t rawtime; + struct tm *timeinfo, local_tm; + char timestamp[32]; + + time(&rawtime); + timeinfo = localtime_r(&rawtime, &local_tm); + + size_t n = strftime(timestamp, 32, "[%Y-%m-%d %H:%M:%S] ", timeinfo); + if (n > 0) + msgq_strpush(timestamp, n + 1); + va_list args; va_start(args, format); msgq_vpush(format, args); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libpulp-0.3.7/tools/introspection.c new/libpulp-0.3.7/tools/introspection.c --- old/libpulp-0.3.7/tools/introspection.c 2024-11-11 23:08:54.000000000 +0100 +++ new/libpulp-0.3.7/tools/introspection.c 2024-12-07 01:06:06.000000000 +0100 @@ -86,6 +86,17 @@ ulp_warn(const char *format, ...) { if (!ulp_quiet) { + time_t rawtime; + struct tm *timeinfo, local_tm; + char timestamp[32]; + + time(&rawtime); + timeinfo = localtime_r(&rawtime, &local_tm); + + strftime(timestamp, 32, "[%Y-%m-%d %H:%M:%S] ", timeinfo); + + fputs(timestamp, stderr); + va_list args; va_start(args, format); vfprintf(stderr, format, args); @@ -97,6 +108,17 @@ ulp_debug(const char *format, ...) { if (ulp_verbose) { + time_t rawtime; + struct tm *timeinfo, local_tm; + char timestamp[32]; + + time(&rawtime); + timeinfo = localtime_r(&rawtime, &local_tm); + + strftime(timestamp, 32, "[%Y-%m-%d %H:%M:%S] ", timeinfo); + + fputs(timestamp, stderr); + va_list args; va_start(args, format); vfprintf(stderr, format, args);