Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package pagein for openSUSE:Factory checked 
in at 2023-01-03 15:05:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/pagein (Old)
 and      /work/SRC/openSUSE:Factory/.pagein.new.1563 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "pagein"

Tue Jan  3 15:05:40 2023 rev:6 rq:1046420 version:0.01.09

Changes:
--------
--- /work/SRC/openSUSE:Factory/pagein/pagein.changes    2022-04-21 
15:48:55.812333639 +0200
+++ /work/SRC/openSUSE:Factory/.pagein.new.1563/pagein.changes  2023-01-03 
15:06:01.834742815 +0100
@@ -1,0 +2,9 @@
+Mon Jan  2 20:09:02 UTC 2023 - Dirk Müller <[email protected]>
+
+- update to 0.01.09:
+  * Makefile: bump version
+  * debian/control: update standards version to 4.6.1
+  * Add comm field information in verbose mode, print pids with %jd
+  * Update copyright year
+
+-------------------------------------------------------------------

Old:
----
  pagein-0.01.08.tar.gz

New:
----
  pagein-0.01.09.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ pagein.spec ++++++
--- /var/tmp/diff_new_pack.9KYyFN/_old  2023-01-03 15:06:02.214745033 +0100
+++ /var/tmp/diff_new_pack.9KYyFN/_new  2023-01-03 15:06:02.218745057 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package pagein
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 # Copyright (c) 2018, Martin Hauke <[email protected]>
 #
 # All modifications and additions to the file contributed by third parties
@@ -18,7 +18,7 @@
 
 
 Name:           pagein
-Version:        0.01.08
+Version:        0.01.09
 Release:        0
 Summary:        A tool to force swapped out pages back into memory
 License:        GPL-2.0-only

++++++ pagein-0.01.08.tar.gz -> pagein-0.01.09.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pagein-0.01.08/Makefile new/pagein-0.01.09/Makefile
--- old/pagein-0.01.08/Makefile 2022-04-20 13:05:16.000000000 +0200
+++ new/pagein-0.01.09/Makefile 2022-12-14 14:26:14.000000000 +0100
@@ -17,7 +17,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
 #
 
-VERSION=0.01.08
+VERSION=0.01.09
 
 CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"' -O2
 #
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pagein-0.01.08/debian/changelog 
new/pagein-0.01.09/debian/changelog
--- old/pagein-0.01.08/debian/changelog 2022-04-20 13:05:16.000000000 +0200
+++ new/pagein-0.01.09/debian/changelog 2022-12-14 14:26:14.000000000 +0100
@@ -1,3 +1,12 @@
+pagein (0.01.09-1) unstable; urgency=medium
+
+  * Makefile: bump version
+  * debian/control: update standards version to 4.6.1
+  * Add comm field information in verbose mode, print pids with %jd
+  * Update copyright year
+
+ -- Colin Ian King <[email protected]>  Wed, 14 Dec 2022 13:26:15 +0000
+
 pagein (0.01.08-1) unstable; urgency=medium
 
   * Debian: update changelog
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pagein-0.01.08/debian/control 
new/pagein-0.01.09/debian/control
--- old/pagein-0.01.08/debian/control   2022-04-20 13:05:16.000000000 +0200
+++ new/pagein-0.01.09/debian/control   2022-12-14 14:26:14.000000000 +0100
@@ -3,7 +3,7 @@
 Section: admin
 Priority: optional
 Maintainer: Colin Ian King <[email protected]>
-Standards-Version: 4.5.1
+Standards-Version: 4.6.1
 Build-Depends: debhelper (>= 13),
                debhelper-compat (=13)
 Homepage: https://github.com/ColinIanKing/pagein
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pagein-0.01.08/debian/copyright 
new/pagein-0.01.09/debian/copyright
--- old/pagein-0.01.08/debian/copyright 2022-04-20 13:05:16.000000000 +0200
+++ new/pagein-0.01.09/debian/copyright 2022-12-14 14:26:14.000000000 +0100
@@ -5,7 +5,7 @@
 
 Files: *
 Copyright: 2015-2021, Canonical, Ltd.
-           2021, Colin Ian King
+           2021-2022, Colin Ian King
 License: GPL-2+
  On Debian systems, the complete text of the GNU General Public
  License can be found in `/usr/share/common-licenses/GPL-2'.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pagein-0.01.08/pagein.1 new/pagein-0.01.09/pagein.1
--- old/pagein-0.01.08/pagein.1 2022-04-20 13:05:16.000000000 +0200
+++ new/pagein-0.01.09/pagein.1 2022-12-14 14:26:14.000000000 +0100
@@ -70,7 +70,7 @@
 This manual page was written by Colin Ian King
 for the Ubuntu project (but may be used by others).
 .SH COPYRIGHT
-Copyright \(co 2016-2021 Canonical Ltd, Copyright \(co 2021 Colin Ian King.
+Copyright \(co 2016-2021 Canonical Ltd, Copyright \(co 2021-2022 Colin Ian 
King.
 .br
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pagein-0.01.08/pagein.c new/pagein-0.01.09/pagein.c
--- old/pagein-0.01.08/pagein.c 2022-04-20 13:05:16.000000000 +0200
+++ new/pagein-0.01.09/pagein.c 2022-12-14 14:26:14.000000000 +0100
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 2016-2021 Canonical, Ltd.
- * Copyright (C) 2021 Colin Ian King
+ * Copyright (C) 2021-2022 Colin Ian King
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -52,6 +52,8 @@
 #define GOT_SWAPFREE           (0x02)
 #define GOT_ALL                        (GOT_MEMFREE | GOT_SWAPFREE)
 
+#define COMM_FIELD_SIZE                (16)
+
 static uint16_t                opt_flags;
 static sigjmp_buf      jmp_env;
 
@@ -68,6 +70,43 @@
 }
 
 /*
+ *  get_comm()
+ *     get the process comm field data, ensure
+ *     non-printable chars are filtered out
+ */
+static inline char *get_comm(const pid_t pid)
+{
+       char buf[PATH_MAX];
+       int fd;
+       ssize_t ret;
+       static char comm[COMM_FIELD_SIZE + 1];
+       static char unknown[] = "(unknown)";
+       char *ptr;
+
+       (void)snprintf(buf, sizeof(buf), "/proc/%jd/comm", (intmax_t)pid);
+       fd = open(buf, O_RDONLY);
+       if (fd < 0)
+               return unknown;
+       ret = read(fd, comm, COMM_FIELD_SIZE);
+       (void)close(fd);
+       if (ret < 0)
+               return unknown;
+       if (ret > COMM_FIELD_SIZE)
+               ret = COMM_FIELD_SIZE;
+       comm[ret] = '\0';
+
+       for (ptr = comm; *ptr; ptr++) {
+               if (*ptr == '\n') {
+                       *ptr = '\0';
+                       break;
+               }
+               if (!isprint((int)*ptr))
+                       *ptr = ' ';
+       }
+       return comm;
+}
+
+/*
  *  align_address
  *     align address to alignment, alignment MUST be a power of 2
  */
@@ -243,8 +282,9 @@
        }
 
        if (opt_flags & OPT_VERBOSE) {
-               (void)printf("PID:%6d, %12zu pages, %12" PRId64 " pages 
touched\r", pid, pages,
-                       *total_pages_touched);
+               (void)printf("PID:%8jd %-*.*s %12zu pages, %12" PRId64 " pages 
touched\r",
+                       (intmax_t)pid, COMM_FIELD_SIZE, COMM_FIELD_SIZE, 
get_comm(pid),
+                       pages, *total_pages_touched);
                (void)fflush(stdout);
        }
 

Reply via email to