[Reproducible-commits] [dpkg] 74/105: libdpkg: Add new info() reporting function
Niko Tyni
ntyni at moszumanska.debian.org
Mon May 2 13:49:55 UTC 2016
This is an automated email from the git hooks/post-receive script.
ntyni pushed a commit to branch ntyni/reproducible_builds
in repository dpkg.
commit 79990a172ac01713028a795b177f53e544ba3223
Author: Guillem Jover <guillem at debian.org>
Date: Tue Apr 12 00:25:19 2016 +0200
libdpkg: Add new info() reporting function
---
lib/dpkg/libdpkg.map | 1 +
lib/dpkg/report.c | 13 +++++++++++++
lib/dpkg/report.h | 2 ++
3 files changed, 16 insertions(+)
diff --git a/lib/dpkg/libdpkg.map b/lib/dpkg/libdpkg.map
index 4006dd3..8c91ab7 100644
--- a/lib/dpkg/libdpkg.map
+++ b/lib/dpkg/libdpkg.map
@@ -48,6 +48,7 @@ LIBDPKG_PRIVATE {
warningv;
warning;
notice;
+ info;
debug_set_output;
debug_set_mask;
diff --git a/lib/dpkg/report.c b/lib/dpkg/report.c
index fc2555f..a697666 100644
--- a/lib/dpkg/report.c
+++ b/lib/dpkg/report.c
@@ -88,3 +88,16 @@ notice(const char *fmt, ...)
fprintf(stderr, "%s: %s\n", dpkg_get_progname(), buf);
}
+
+void
+info(const char *fmt, ...)
+{
+ char buf[1024];
+ va_list args;
+
+ va_start(args, fmt);
+ vsnprintf(buf, sizeof(buf), fmt, args);
+ va_end(args);
+
+ printf("%s: %s\n", dpkg_get_progname(), buf);
+}
diff --git a/lib/dpkg/report.h b/lib/dpkg/report.h
index 5115202..4cadc7f 100644
--- a/lib/dpkg/report.h
+++ b/lib/dpkg/report.h
@@ -44,6 +44,8 @@ void warning(const char *fmt, ...) DPKG_ATTR_PRINTF(1);
void notice(const char *fmt, ...) DPKG_ATTR_PRINTF(1);
+void info(const char *fmt, ...) DPKG_ATTR_PRINTF(1);
+
/** @} */
DPKG_END_DECLS
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dpkg.git
More information about the Reproducible-commits
mailing list