Hello community,

here is the log from the commit of package rasdaemon for openSUSE:Factory 
checked in at 2018-08-24 17:13:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rasdaemon (Old)
 and      /work/SRC/openSUSE:Factory/.rasdaemon.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rasdaemon"

Fri Aug 24 17:13:21 2018 rev:10 rq:631249 version:0.6.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/rasdaemon/rasdaemon.changes      2018-06-22 
13:33:56.773837750 +0200
+++ /work/SRC/openSUSE:Factory/.rasdaemon.new/rasdaemon.changes 2018-08-24 
17:13:55.098771838 +0200
@@ -1,0 +2,14 @@
+Thu Aug 23 11:36:13 UTC 2018 - mplus...@suse.com
+
+- Update to version 0.6.2:
+  * Bump to version 0.6.2
+  * INSTALL: update it from auto-generated data
+  * ChangeLog: Reorder to place new stuff at the beginning
+  * rasdaemon: ras-mc-ctl: add option to show error counts
+  * mce-amd-k8: be sure to not go past error_msg buffer
+  * ras-report: avoid copying after addr.sun_path
+  * mce-intel-*: fix a warning when using FIELD(<num>, NULL)
+  * rasdaemon: use separate string array for error status
+  * rasdaemon: fix PCIe AER error type
+
+-------------------------------------------------------------------

Old:
----
  rasdaemon-0.6.1.tar.xz

New:
----
  rasdaemon-0.6.2.tar.xz

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

Other differences:
------------------
++++++ rasdaemon.spec ++++++
--- /var/tmp/diff_new_pack.GpRffK/_old  2018-08-24 17:13:56.250773211 +0200
+++ /var/tmp/diff_new_pack.GpRffK/_new  2018-08-24 17:13:56.254773216 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           rasdaemon
-Version:        0.6.1
+Version:        0.6.2
 Release:        0
 Summary:        Utility to receive RAS error tracings
 License:        GPL-2.0-only
@@ -85,7 +85,6 @@
 %service_del_postun rasdaemon.service ras-mc-ctl.service
 
 %files
-%defattr(-,root,root)
 %license COPYING
 %doc AUTHORS ChangeLog README TODO
 %{_sbindir}/rasdaemon

++++++ _service ++++++
--- /var/tmp/diff_new_pack.GpRffK/_old  2018-08-24 17:13:56.302773273 +0200
+++ /var/tmp/diff_new_pack.GpRffK/_new  2018-08-24 17:13:56.302773273 +0200
@@ -4,7 +4,7 @@
     <param name="scm">git</param>
     <param name="changesgenerate">enable</param>
     <param name="filename">rasdaemon</param>
-    <param name="revision">refs/tags/v0.6.1</param>
+    <param name="revision">refs/tags/v0.6.2</param>
     <param name="versionformat">@PARENT_TAG@</param>
     <param name="versionrewrite-pattern">v(.*)</param>
   </service>

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.GpRffK/_old  2018-08-24 17:13:56.322773297 +0200
+++ /var/tmp/diff_new_pack.GpRffK/_new  2018-08-24 17:13:56.322773297 +0200
@@ -1,4 +1,4 @@
 <servicedata>
 <service name="tar_scm">
                 <param 
name="url">git://git.infradead.org/users/mchehab/rasdaemon.git</param>
-              <param 
name="changesrevision">f47c6addea6990c4a18848bb1d50c1506e836e54</param></service></servicedata>
\ No newline at end of file
+              <param 
name="changesrevision">552090703b292c046e5c66ab7a867c8a2100304f</param></service></servicedata>
\ No newline at end of file

++++++ rasdaemon-0.6.1.tar.xz -> rasdaemon-0.6.2.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rasdaemon-0.6.1/ChangeLog 
new/rasdaemon-0.6.2/ChangeLog
--- old/rasdaemon-0.6.1/ChangeLog       2018-04-25 12:33:39.000000000 +0200
+++ new/rasdaemon-0.6.2/ChangeLog       2018-08-14 19:11:02.000000000 +0200
@@ -1,116 +1,132 @@
-2013-03-12     Mauro Carvalho Chehab <mchehab+red...@kernel.org>
+2018-08-14     Mauro Carvalho Chehab <mchehab+sams...@kernel.org>
+       - Version 0.6.2
 
-       * Version 0.1.0
-       * Initial version
+       * Update INSTALL from the auto-tools generated one
+       * Reorder this ChangeLog place new stuff at the beginning
+       * add option to show error counts at ras-mc-ctl
+       * Do some new gcc 8.1 warning cleanups
+       * Use separate string array for PCIe AER error status
+       * Fix PCIe AER error type
 
-2013-05-08     Mauro Carvalho Chehab <mchehab+red...@kernel.org>
+2018-04-25     Mauro Carvalho Chehab <mchehab+sams...@kernel.org>
+       - Version 0.6.1
 
-       * Version 0.2.0
-       * Add support to log via syslog
-       * Add ras-mc-ctl script to handle dimm labels
-       * Add a rpm spec file
-       * Make sqlite3 code experimental
-       * Add manpages and systemd services
-       * Update to take advantage of tracing features on Kernel 3.10
+       * Update DIMM labels for 2-socket servers
+       * Add Skylake Xeon MSCOD values
+       * ARM: fully initialize ras_arm_event
+       * Update my email
 
-2013-05-20     Mauro Carvalho Chehab <mchehab+red...@kernel.org>
+2017-10-14     Mauro Carvalho Chehab <mchehab+sams...@kernel.org>
+       - Version 0.6.0
 
-       * Version 0.3.0
-       * Several fixes
-       * Add support for MCE traces
-       * Add support for PCI AER traces
-       * Add a target to build it on rpm-based distros
+       * Added support for non-standard CPER error sections
+       * Added support for Hisilicon HIP07 SAS HW module
+       * Added support for ARM events
+       * Updated DIMM labels for Intel Skylake servers
 
-2013-05-28     Mauro Carvalho Chehab <mchehab+red...@kernel.org>
+2016-06-08     Mauro Carvalho Chehab <mchehab+sams...@kernel.org>
+       - Version 0.5.9
 
-       * Version 0.4.0
-       * Several fixes
-       * Get rid of pthreads, to avoid troubles with sqllite3
-         (requires Kernel 3.10 or upper)
-       * Add memory error decoding on MCE traces
+       * Add Knights Mill and updated DELL labels
+       * Configure now reports enabled options
 
-2013-05-29     Mauro Carvalho Chehab <mchehab+red...@kernel.org>
+2016-04-15     Mauro Carvalho Chehab <mchehab+sams...@kernel.org>
+       - Version 0.5.8
 
-       * Version 0.4.1
-       * Some fixes, mostly at sqlite3 code
-       * Add support at ras-mc-ctl to query database
+       * Add Broadwell EP/EX MSCOD and Broadwell DE MSCOD values
 
-2013-09-10     Mauro Carvalho Chehab <m.che...@samsung.com>
+2016-02-05     Mauro Carvalho Chehab <mchehab+sams...@kernel.org>
+       - Version 0.5.7
 
-       * Version 0.4.2
-       * Fixes ras-mc-ctl layout
+       * Add model numbers for Broadwell-EP/EX and -DE
+       * Add support for Knights Landing processor
 
-2014-02-16     Mauro Carvalho Chehab <m.che...@samsung.com>
+2015-07-03     Mauro Carvalho Chehab <mchehab+sams...@kernel.org>
+       - Version 0.5.6
 
-       * Version 0.5.0
-       * Initial ABRT support
+       * Add internal errors of IA32_MC4_STATUS for Haswell
+       * Use MCA error msg as error_msg
+       * Unnecessary comma for empty mc_location string
+       * Remove a space from mcgstatus_msg
+       * Add support to log Local Machine Check Exception (LMCE)
 
-2014-03-25     Mauro Carvalho Chehab <m.che...@samsung.com>
+2015-06-03     Mauro Carvalho Chehab <mchehab+sams...@kernel.org>
+       - Version 0.5.5
 
-       * Version 0.5.1
-       * Fix patches at *.service files
-       * Some fixes and documentation for --record option
+       * Improve INSTALL summary instructions
+       * Add support to match the machine by system's product name
+       * Add support for Haswell/Broadwell/Knights Landing
+       * Some bug fixes on some MCE handlers
 
-2014-04-03     Mauro Carvalho Chehab <m.che...@samsung.com>
+2014-08-15     Mauro Carvalho Chehab <m.che...@samsung.com>
+       - Version 0.5.4
 
-       - Version 0.5.2
-       * Some fixes for ABRT report support
+       * Fix a bug while parsing dimm labels on amd64
+       * Enable database recording by default on systemd service file
+       * Correct range while parsing top, middle and lower layers
 
 2014-08-10     Mauro Carvalho Chehab <m.che...@samsung.com>
-
        - Version 0.5.3
+
        * Add support for extlog trace events
        * Some fixes affecting sqlite handling
        * Handle failures of snprintf()
         * Fix mce numfield decoded error
 
-2014-08-15     Mauro Carvalho Chehab <m.che...@samsung.com>
+2014-04-03     Mauro Carvalho Chehab <m.che...@samsung.com>
+       - Version 0.5.2
 
-       - Version 0.5.4
-       * Fix a bug while parsing dimm labels on amd64
-       * Enable database recording by default on systemd service file
-       * Correct range while parsing top, middle and lower layers
+       * Some fixes for ABRT report support
 
-2015-06-03     Mauro Carvalho Chehab <mchehab+sams...@kernel.org>
+2014-03-25     Mauro Carvalho Chehab <m.che...@samsung.com>
+       - Version 0.5.1
 
-       - Version 0.5.5
-       * Improve INSTALL summary instructions
-       * Add support to match the machine by system's product name
-       * Add support for Haswell/Broadwell/Knights Landing
-       * Some bug fixes on some MCE handlers
+       * Fix patches at *.service files
+       * Some fixes and documentation for --record option
 
-2015-07-03     Mauro Carvalho Chehab <mchehab+sams...@kernel.org>
-       - Version 0.5.6
-       * Add internal errors of IA32_MC4_STATUS for Haswell
-       * Use MCA error msg as error_msg
-       * Unnecessary comma for empty mc_location string
-       * Remove a space from mcgstatus_msg
-       * Add support to log Local Machine Check Exception (LMCE)
+2014-02-16     Mauro Carvalho Chehab <m.che...@samsung.com>
+       - Version 0.5.0
 
-2016-02-05     Mauro Carvalho Chehab <mchehab+sams...@kernel.org>
-       - Version 0.5.7
-       * Add model numbers for Broadwell-EP/EX and -DE
-       * Add support for Knights Landing processor
+       * Initial ABRT support
 
-2016-04-15     Mauro Carvalho Chehab <mchehab+sams...@kernel.org>
-       - Version 0.5.8
-       * Add Broadwell EP/EX MSCOD and Broadwell DE MSCOD values
+2013-09-10     Mauro Carvalho Chehab <m.che...@samsung.com>
+       - Version 0.4.2
 
-2016-06-08     Mauro Carvalho Chehab <mchehab+sams...@kernel.org>
-       - Version 0.5.9
-       * Add Knights Mill and updated DELL labels
-       * Configure now reports enabled options
+       * Fixes ras-mc-ctl layout
 
-2017-10-14     Mauro Carvalho Chehab <mchehab+sams...@kernel.org>
-       - Version 0.6.0
-       * Added support for non-standard CPER error sections
-       * Added support for Hisilicon HIP07 SAS HW module
-       * Added support for ARM events
-       * Updated DIMM labels for Intel Skylake servers
+2013-05-29     Mauro Carvalho Chehab <mchehab+red...@kernel.org>
+       - Version 0.4.1
 
-2018-04-25     Mauro Carvalho Chehab <mchehab+sams...@kernel.org>
-       - Version 0.6.1
-       * Update DIMM labels for 2-socket servers
-       * Add Skylake Xeon MSCOD values
-       * ARM: fully initialize ras_arm_event
-       * Update my email
+       * Some fixes, mostly at sqlite3 code
+       * Add support at ras-mc-ctl to query database
+
+2013-05-28     Mauro Carvalho Chehab <mchehab+red...@kernel.org>
+       - Version 0.4.0
+
+       * Several fixes
+       * Get rid of pthreads, to avoid troubles with sqllite3
+         (requires Kernel 3.10 or upper)
+       * Add memory error decoding on MCE traces
+
+2013-05-20     Mauro Carvalho Chehab <mchehab+red...@kernel.org>
+       - Version 0.3.0
+
+       * Several fixes
+       * Add support for MCE traces
+       * Add support for PCI AER traces
+       * Add a target to build it on rpm-based distros
+
+2013-05-08     Mauro Carvalho Chehab <mchehab+red...@kernel.org>
+       - Version 0.2.0
+
+       * Add support to log via syslog
+       * Add ras-mc-ctl script to handle dimm labels
+       * Add a rpm spec file
+       * Make sqlite3 code experimental
+       * Add manpages and systemd services
+       * Update to take advantage of tracing features on Kernel 3.10
+
+2013-03-12     Mauro Carvalho Chehab <mchehab+red...@kernel.org>
+       - Version 0.1.0
+
+       * Initial version
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rasdaemon-0.6.1/INSTALL new/rasdaemon-0.6.2/INSTALL
--- old/rasdaemon-0.6.1/INSTALL 2018-04-25 12:33:39.000000000 +0200
+++ new/rasdaemon-0.6.2/INSTALL 2018-08-14 19:11:02.000000000 +0200
@@ -1,8 +1,8 @@
 Installation Instructions
 *************************
 
-Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation,
-Inc.
+   Copyright (C) 1994-1996, 1999-2002, 2004-2016 Free Software
+Foundation, Inc.
 
    Copying and distribution of this file, with or without modification,
 are permitted in any medium without royalty provided the copyright
@@ -12,97 +12,96 @@
 Basic Installation
 ==================
 
-   Briefly, the shell command `./configure && make && make install'
+   Briefly, the shell command './configure && make && make install'
 should configure, build, and install this package.  The following
-more-detailed instructions are generic; see the `README' file for
+more-detailed instructions are generic; see the 'README' file for
 instructions specific to this package.  Some packages provide this
-`INSTALL' file but do not implement all of the features documented
+'INSTALL' file but do not implement all of the features documented
 below.  The lack of an optional feature in a given package is not
 necessarily a bug.  More recommendations for GNU packages can be found
 in *note Makefile Conventions: (standards)Makefile Conventions.
 
-   The `configure' shell script attempts to guess correct values for
+   The 'configure' shell script attempts to guess correct values for
 various system-dependent variables used during compilation.  It uses
-those values to create a `Makefile' in each directory of the package.
-It may also create one or more `.h' files containing system-dependent
-definitions.  Finally, it creates a shell script `config.status' that
+those values to create a 'Makefile' in each directory of the package.
+It may also create one or more '.h' files containing system-dependent
+definitions.  Finally, it creates a shell script 'config.status' that
 you can run in the future to recreate the current configuration, and a
-file `config.log' containing compiler output (useful mainly for
-debugging `configure').
+file 'config.log' containing compiler output (useful mainly for
+debugging 'configure').
 
-   It can also use an optional file (typically called `config.cache'
-and enabled with `--cache-file=config.cache' or simply `-C') that saves
-the results of its tests to speed up reconfiguring.  Caching is
-disabled by default to prevent problems with accidental use of stale
-cache files.
+   It can also use an optional file (typically called 'config.cache' and
+enabled with '--cache-file=config.cache' or simply '-C') that saves the
+results of its tests to speed up reconfiguring.  Caching is disabled by
+default to prevent problems with accidental use of stale cache files.
 
    If you need to do unusual things to compile the package, please try
-to figure out how `configure' could check whether to do them, and mail
-diffs or instructions to the address given in the `README' so they can
+to figure out how 'configure' could check whether to do them, and mail
+diffs or instructions to the address given in the 'README' so they can
 be considered for the next release.  If you are using the cache, and at
-some point `config.cache' contains results you don't want to keep, you
+some point 'config.cache' contains results you don't want to keep, you
 may remove or edit it.
 
-   The file `configure.ac' (or `configure.in') is used to create
-`configure' by a program called `autoconf'.  You need `configure.ac' if
-you want to change it or regenerate `configure' using a newer version
-of `autoconf'.
+   The file 'configure.ac' (or 'configure.in') is used to create
+'configure' by a program called 'autoconf'.  You need 'configure.ac' if
+you want to change it or regenerate 'configure' using a newer version of
+'autoconf'.
 
    The simplest way to compile this package is:
 
-  1. `cd' to the directory containing the package's source code and type
-     `./configure' to configure the package for your system.
+  1. 'cd' to the directory containing the package's source code and type
+     './configure' to configure the package for your system.
 
-     Running `configure' might take a while.  While running, it prints
+     Running 'configure' might take a while.  While running, it prints
      some messages telling which features it is checking for.
 
-  2. Type `make' to compile the package.
+  2. Type 'make' to compile the package.
 
-  3. Optionally, type `make check' to run any self-tests that come with
+  3. Optionally, type 'make check' to run any self-tests that come with
      the package, generally using the just-built uninstalled binaries.
 
-  4. Type `make install' to install the programs and any data files and
+  4. Type 'make install' to install the programs and any data files and
      documentation.  When installing into a prefix owned by root, it is
      recommended that the package be configured and built as a regular
-     user, and only the `make install' phase executed with root
+     user, and only the 'make install' phase executed with root
      privileges.
 
-  5. Optionally, type `make installcheck' to repeat any self-tests, but
+  5. Optionally, type 'make installcheck' to repeat any self-tests, but
      this time using the binaries in their final installed location.
      This target does not install anything.  Running this target as a
-     regular user, particularly if the prior `make install' required
+     regular user, particularly if the prior 'make install' required
      root privileges, verifies that the installation completed
      correctly.
 
   6. You can remove the program binaries and object files from the
-     source code directory by typing `make clean'.  To also remove the
-     files that `configure' created (so you can compile the package for
-     a different kind of computer), type `make distclean'.  There is
-     also a `make maintainer-clean' target, but that is intended mainly
+     source code directory by typing 'make clean'.  To also remove the
+     files that 'configure' created (so you can compile the package for
+     a different kind of computer), type 'make distclean'.  There is
+     also a 'make maintainer-clean' target, but that is intended mainly
      for the package's developers.  If you use it, you may have to get
      all sorts of other programs in order to regenerate files that came
      with the distribution.
 
-  7. Often, you can also type `make uninstall' to remove the installed
+  7. Often, you can also type 'make uninstall' to remove the installed
      files again.  In practice, not all packages have tested that
      uninstallation works correctly, even though it is required by the
      GNU Coding Standards.
 
-  8. Some packages, particularly those that use Automake, provide `make
+  8. Some packages, particularly those that use Automake, provide 'make
      distcheck', which can by used by developers to test that all other
-     targets like `make install' and `make uninstall' work correctly.
+     targets like 'make install' and 'make uninstall' work correctly.
      This target is generally not run by end users.
 
 Compilers and Options
 =====================
 
    Some systems require unusual options for compilation or linking that
-the `configure' script does not know about.  Run `./configure --help'
+the 'configure' script does not know about.  Run './configure --help'
 for details on some of the pertinent environment variables.
 
-   You can give `configure' initial values for configuration parameters
-by setting variables in the command line or in the environment.  Here
-is an example:
+   You can give 'configure' initial values for configuration parameters
+by setting variables in the command line or in the environment.  Here is
+an example:
 
      ./configure CC=c99 CFLAGS=-g LIBS=-lposix
 
@@ -113,21 +112,21 @@
 
    You can compile the package for more than one kind of computer at the
 same time, by placing the object files for each architecture in their
-own directory.  To do this, you can use GNU `make'.  `cd' to the
+own directory.  To do this, you can use GNU 'make'.  'cd' to the
 directory where you want the object files and executables to go and run
-the `configure' script.  `configure' automatically checks for the
-source code in the directory that `configure' is in and in `..'.  This
-is known as a "VPATH" build.
+the 'configure' script.  'configure' automatically checks for the source
+code in the directory that 'configure' is in and in '..'.  This is known
+as a "VPATH" build.
 
-   With a non-GNU `make', it is safer to compile the package for one
+   With a non-GNU 'make', it is safer to compile the package for one
 architecture at a time in the source code directory.  After you have
-installed the package for one architecture, use `make distclean' before
+installed the package for one architecture, use 'make distclean' before
 reconfiguring for another architecture.
 
    On MacOS X 10.5 and later systems, you can create libraries and
 executables that work on multiple system types--known as "fat" or
-"universal" binaries--by specifying multiple `-arch' options to the
-compiler but only a single `-arch' option to the preprocessor.  Like
+"universal" binaries--by specifying multiple '-arch' options to the
+compiler but only a single '-arch' option to the preprocessor.  Like
 this:
 
      ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
@@ -136,105 +135,104 @@
 
    This is not guaranteed to produce working output in all cases, you
 may have to build one architecture at a time and combine the results
-using the `lipo' tool if you have problems.
+using the 'lipo' tool if you have problems.
 
 Installation Names
 ==================
 
-   By default, `make install' installs the package's commands under
-`/usr/local/bin', include files under `/usr/local/include', etc.  You
-can specify an installation prefix other than `/usr/local' by giving
-`configure' the option `--prefix=PREFIX', where PREFIX must be an
+   By default, 'make install' installs the package's commands under
+'/usr/local/bin', include files under '/usr/local/include', etc.  You
+can specify an installation prefix other than '/usr/local' by giving
+'configure' the option '--prefix=PREFIX', where PREFIX must be an
 absolute file name.
 
    You can specify separate installation prefixes for
 architecture-specific files and architecture-independent files.  If you
-pass the option `--exec-prefix=PREFIX' to `configure', the package uses
+pass the option '--exec-prefix=PREFIX' to 'configure', the package uses
 PREFIX as the prefix for installing programs and libraries.
 Documentation and other data files still use the regular prefix.
 
    In addition, if you use an unusual directory layout you can give
-options like `--bindir=DIR' to specify different values for particular
-kinds of files.  Run `configure --help' for a list of the directories
-you can set and what kinds of files go in them.  In general, the
-default for these options is expressed in terms of `${prefix}', so that
-specifying just `--prefix' will affect all of the other directory
+options like '--bindir=DIR' to specify different values for particular
+kinds of files.  Run 'configure --help' for a list of the directories
+you can set and what kinds of files go in them.  In general, the default
+for these options is expressed in terms of '${prefix}', so that
+specifying just '--prefix' will affect all of the other directory
 specifications that were not explicitly provided.
 
    The most portable way to affect installation locations is to pass the
-correct locations to `configure'; however, many packages provide one or
+correct locations to 'configure'; however, many packages provide one or
 both of the following shortcuts of passing variable assignments to the
-`make install' command line to change installation locations without
+'make install' command line to change installation locations without
 having to reconfigure or recompile.
 
    The first method involves providing an override variable for each
-affected directory.  For example, `make install
+affected directory.  For example, 'make install
 prefix=/alternate/directory' will choose an alternate location for all
 directory configuration variables that were expressed in terms of
-`${prefix}'.  Any directories that were specified during `configure',
-but not in terms of `${prefix}', must each be overridden at install
-time for the entire installation to be relocated.  The approach of
-makefile variable overrides for each directory variable is required by
-the GNU Coding Standards, and ideally causes no recompilation.
-However, some platforms have known limitations with the semantics of
-shared libraries that end up requiring recompilation when using this
-method, particularly noticeable in packages that use GNU Libtool.
-
-   The second method involves providing the `DESTDIR' variable.  For
-example, `make install DESTDIR=/alternate/directory' will prepend
-`/alternate/directory' before all installation names.  The approach of
-`DESTDIR' overrides is not required by the GNU Coding Standards, and
+'${prefix}'.  Any directories that were specified during 'configure',
+but not in terms of '${prefix}', must each be overridden at install time
+for the entire installation to be relocated.  The approach of makefile
+variable overrides for each directory variable is required by the GNU
+Coding Standards, and ideally causes no recompilation.  However, some
+platforms have known limitations with the semantics of shared libraries
+that end up requiring recompilation when using this method, particularly
+noticeable in packages that use GNU Libtool.
+
+   The second method involves providing the 'DESTDIR' variable.  For
+example, 'make install DESTDIR=/alternate/directory' will prepend
+'/alternate/directory' before all installation names.  The approach of
+'DESTDIR' overrides is not required by the GNU Coding Standards, and
 does not work on platforms that have drive letters.  On the other hand,
 it does better at avoiding recompilation issues, and works well even
-when some directory options were not specified in terms of `${prefix}'
-at `configure' time.
+when some directory options were not specified in terms of '${prefix}'
+at 'configure' time.
 
 Optional Features
 =================
 
    If the package supports it, you can cause programs to be installed
-with an extra prefix or suffix on their names by giving `configure' the
-option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
+with an extra prefix or suffix on their names by giving 'configure' the
+option '--program-prefix=PREFIX' or '--program-suffix=SUFFIX'.
 
-   Some packages pay attention to `--enable-FEATURE' options to
-`configure', where FEATURE indicates an optional part of the package.
-They may also pay attention to `--with-PACKAGE' options, where PACKAGE
-is something like `gnu-as' or `x' (for the X Window System).  The
-`README' should mention any `--enable-' and `--with-' options that the
+   Some packages pay attention to '--enable-FEATURE' options to
+'configure', where FEATURE indicates an optional part of the package.
+They may also pay attention to '--with-PACKAGE' options, where PACKAGE
+is something like 'gnu-as' or 'x' (for the X Window System).  The
+'README' should mention any '--enable-' and '--with-' options that the
 package recognizes.
 
-   For packages that use the X Window System, `configure' can usually
+   For packages that use the X Window System, 'configure' can usually
 find the X include and library files automatically, but if it doesn't,
-you can use the `configure' options `--x-includes=DIR' and
-`--x-libraries=DIR' to specify their locations.
+you can use the 'configure' options '--x-includes=DIR' and
+'--x-libraries=DIR' to specify their locations.
 
    Some packages offer the ability to configure how verbose the
-execution of `make' will be.  For these packages, running `./configure
+execution of 'make' will be.  For these packages, running './configure
 --enable-silent-rules' sets the default to minimal output, which can be
-overridden with `make V=1'; while running `./configure
+overridden with 'make V=1'; while running './configure
 --disable-silent-rules' sets the default to verbose, which can be
-overridden with `make V=0'.
+overridden with 'make V=0'.
 
 Particular systems
 ==================
 
-   On HP-UX, the default C compiler is not ANSI C compatible.  If GNU
-CC is not installed, it is recommended to use the following options in
+   On HP-UX, the default C compiler is not ANSI C compatible.  If GNU CC
+is not installed, it is recommended to use the following options in
 order to use an ANSI C compiler:
 
      ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
 
 and if that doesn't work, install pre-built binaries of GCC for HP-UX.
 
-   HP-UX `make' updates targets which have the same time stamps as
-their prerequisites, which makes it generally unusable when shipped
-generated files such as `configure' are involved.  Use GNU `make'
-instead.
+   HP-UX 'make' updates targets which have the same time stamps as their
+prerequisites, which makes it generally unusable when shipped generated
+files such as 'configure' are involved.  Use GNU 'make' instead.
 
    On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
-parse its `<wchar.h>' header file.  The option `-nodtk' can be used as
-a workaround.  If GNU CC is not installed, it is therefore recommended
-to try
+parse its '<wchar.h>' header file.  The option '-nodtk' can be used as a
+workaround.  If GNU CC is not installed, it is therefore recommended to
+try
 
      ./configure CC="cc"
 
@@ -242,26 +240,26 @@
 
      ./configure CC="cc -nodtk"
 
-   On Solaris, don't put `/usr/ucb' early in your `PATH'.  This
+   On Solaris, don't put '/usr/ucb' early in your 'PATH'.  This
 directory contains several dysfunctional programs; working variants of
-these programs are available in `/usr/bin'.  So, if you need `/usr/ucb'
-in your `PATH', put it _after_ `/usr/bin'.
+these programs are available in '/usr/bin'.  So, if you need '/usr/ucb'
+in your 'PATH', put it _after_ '/usr/bin'.
 
-   On Haiku, software installed for all users goes in `/boot/common',
-not `/usr/local'.  It is recommended to use the following options:
+   On Haiku, software installed for all users goes in '/boot/common',
+not '/usr/local'.  It is recommended to use the following options:
 
      ./configure --prefix=/boot/common
 
 Specifying the System Type
 ==========================
 
-   There may be some features `configure' cannot figure out
+   There may be some features 'configure' cannot figure out
 automatically, but needs to determine by the type of machine the package
 will run on.  Usually, assuming the package is built to be run on the
-_same_ architectures, `configure' can figure that out, but if it prints
+_same_ architectures, 'configure' can figure that out, but if it prints
 a message saying it cannot guess the machine type, give it the
-`--build=TYPE' option.  TYPE can either be a short name for the system
-type, such as `sun4', or a canonical name which has the form:
+'--build=TYPE' option.  TYPE can either be a short name for the system
+type, such as 'sun4', or a canonical name which has the form:
 
      CPU-COMPANY-SYSTEM
 
@@ -270,101 +268,101 @@
      OS
      KERNEL-OS
 
-   See the file `config.sub' for the possible values of each field.  If
-`config.sub' isn't included in this package, then this package doesn't
+   See the file 'config.sub' for the possible values of each field.  If
+'config.sub' isn't included in this package, then this package doesn't
 need to know the machine type.
 
    If you are _building_ compiler tools for cross-compiling, you should
-use the option `--target=TYPE' to select the type of system they will
+use the option '--target=TYPE' to select the type of system they will
 produce code for.
 
    If you want to _use_ a cross compiler, that generates code for a
 platform different from the build platform, you should specify the
 "host" platform (i.e., that on which the generated programs will
-eventually be run) with `--host=TYPE'.
+eventually be run) with '--host=TYPE'.
 
 Sharing Defaults
 ================
 
-   If you want to set default values for `configure' scripts to share,
-you can create a site shell script called `config.site' that gives
-default values for variables like `CC', `cache_file', and `prefix'.
-`configure' looks for `PREFIX/share/config.site' if it exists, then
-`PREFIX/etc/config.site' if it exists.  Or, you can set the
-`CONFIG_SITE' environment variable to the location of the site script.
-A warning: not all `configure' scripts look for a site script.
+   If you want to set default values for 'configure' scripts to share,
+you can create a site shell script called 'config.site' that gives
+default values for variables like 'CC', 'cache_file', and 'prefix'.
+'configure' looks for 'PREFIX/share/config.site' if it exists, then
+'PREFIX/etc/config.site' if it exists.  Or, you can set the
+'CONFIG_SITE' environment variable to the location of the site script.
+A warning: not all 'configure' scripts look for a site script.
 
 Defining Variables
 ==================
 
    Variables not defined in a site shell script can be set in the
-environment passed to `configure'.  However, some packages may run
+environment passed to 'configure'.  However, some packages may run
 configure again during the build, and the customized values of these
 variables may be lost.  In order to avoid this problem, you should set
-them in the `configure' command line, using `VAR=value'.  For example:
+them in the 'configure' command line, using 'VAR=value'.  For example:
 
      ./configure CC=/usr/local2/bin/gcc
 
-causes the specified `gcc' to be used as the C compiler (unless it is
+causes the specified 'gcc' to be used as the C compiler (unless it is
 overridden in the site shell script).
 
-Unfortunately, this technique does not work for `CONFIG_SHELL' due to
-an Autoconf limitation.  Until the limitation is lifted, you can use
-this workaround:
+Unfortunately, this technique does not work for 'CONFIG_SHELL' due to an
+Autoconf limitation.  Until the limitation is lifted, you can use this
+workaround:
 
      CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
 
-`configure' Invocation
+'configure' Invocation
 ======================
 
-   `configure' recognizes the following options to control how it
+   'configure' recognizes the following options to control how it
 operates.
 
-`--help'
-`-h'
-     Print a summary of all of the options to `configure', and exit.
+'--help'
+'-h'
+     Print a summary of all of the options to 'configure', and exit.
 
-`--help=short'
-`--help=recursive'
+'--help=short'
+'--help=recursive'
      Print a summary of the options unique to this package's
-     `configure', and exit.  The `short' variant lists options used
-     only in the top level, while the `recursive' variant lists options
-     also present in any nested packages.
-
-`--version'
-`-V'
-     Print the version of Autoconf used to generate the `configure'
+     'configure', and exit.  The 'short' variant lists options used only
+     in the top level, while the 'recursive' variant lists options also
+     present in any nested packages.
+
+'--version'
+'-V'
+     Print the version of Autoconf used to generate the 'configure'
      script, and exit.
 
-`--cache-file=FILE'
+'--cache-file=FILE'
      Enable the cache: use and save the results of the tests in FILE,
-     traditionally `config.cache'.  FILE defaults to `/dev/null' to
+     traditionally 'config.cache'.  FILE defaults to '/dev/null' to
      disable caching.
 
-`--config-cache'
-`-C'
-     Alias for `--cache-file=config.cache'.
-
-`--quiet'
-`--silent'
-`-q'
+'--config-cache'
+'-C'
+     Alias for '--cache-file=config.cache'.
+
+'--quiet'
+'--silent'
+'-q'
      Do not print messages saying which checks are being made.  To
-     suppress all normal output, redirect it to `/dev/null' (any error
+     suppress all normal output, redirect it to '/dev/null' (any error
      messages will still be shown).
 
-`--srcdir=DIR'
+'--srcdir=DIR'
      Look for the package's source code in directory DIR.  Usually
-     `configure' can determine that directory automatically.
+     'configure' can determine that directory automatically.
 
-`--prefix=DIR'
-     Use DIR as the installation prefix.  *note Installation Names::
-     for more details, including other options available for fine-tuning
-     the installation locations.
+'--prefix=DIR'
+     Use DIR as the installation prefix.  *note Installation Names:: for
+     more details, including other options available for fine-tuning the
+     installation locations.
 
-`--no-create'
-`-n'
+'--no-create'
+'-n'
      Run the configure checks, but stop before creating any output
      files.
 
-`configure' also accepts some other, not widely useful, options.  Run
-`configure --help' for more details.
+'configure' also accepts some other, not widely useful, options.  Run
+'configure --help' for more details.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rasdaemon-0.6.1/bitfield.h 
new/rasdaemon-0.6.2/bitfield.h
--- old/rasdaemon-0.6.1/bitfield.h      2018-04-25 12:33:39.000000000 +0200
+++ new/rasdaemon-0.6.2/bitfield.h      2018-08-14 19:11:02.000000000 +0200
@@ -35,6 +35,7 @@
 };
 
 #define FIELD(start_bit, name) { start_bit, name, ARRAY_SIZE(name) }
+#define FIELD_NULL(start_bit) { start_bit, NULL, 0 }
 #define SBITFIELD(start_bit, string) { start_bit, ((char * [2]) { NULL, string 
}), 2 }
 
 #define NUMBER(start, end, name) { start, end, name, "%Lu", 0 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rasdaemon-0.6.1/configure.ac 
new/rasdaemon-0.6.2/configure.ac
--- old/rasdaemon-0.6.1/configure.ac    2018-04-25 12:33:39.000000000 +0200
+++ new/rasdaemon-0.6.2/configure.ac    2018-08-14 19:11:02.000000000 +0200
@@ -1,4 +1,4 @@
-AC_INIT([RASdaemon], 0.6.1)
+AC_INIT([RASdaemon], 0.6.2)
 AM_SILENT_RULES([yes])
 AC_CANONICAL_SYSTEM
 AC_CONFIG_MACRO_DIR([m4])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rasdaemon-0.6.1/mce-amd-k8.c 
new/rasdaemon-0.6.2/mce-amd-k8.c
--- old/rasdaemon-0.6.1/mce-amd-k8.c    2018-04-25 12:33:39.000000000 +0200
+++ new/rasdaemon-0.6.2/mce-amd-k8.c    2018-08-14 19:11:02.000000000 +0200
@@ -125,7 +125,7 @@
 
 static void decode_k8_generic_errcode(struct mce_event *e)
 {
-       char tmp_buf[4096];
+       char tmp_buf[4092];
        unsigned short errcode = e->status & 0xffff;
        int n;
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rasdaemon-0.6.1/mce-intel-dunnington.c 
new/rasdaemon-0.6.2/mce-intel-dunnington.c
--- old/rasdaemon-0.6.1/mce-intel-dunnington.c  2018-04-25 12:33:39.000000000 
+0200
+++ new/rasdaemon-0.6.2/mce-intel-dunnington.c  2018-08-14 19:11:02.000000000 
+0200
@@ -27,14 +27,14 @@
 
 static struct field dunnington_bus_status[] = {
        SBITFIELD(16, "Parity error detected during FSB request phase"),
-       FIELD(17, NULL),
+       FIELD_NULL(17),
        SBITFIELD(20, "Hard Failure response received for a local transaction"),
        SBITFIELD(21, "Parity error on FSB response field detected"),
        SBITFIELD(22, "Parity data error on inbound data detected"),
-       FIELD(23, NULL),
-       FIELD(25, NULL),
-       FIELD(28, NULL),
-       FIELD(31, NULL),
+       FIELD_NULL(23),
+       FIELD_NULL(25),
+       FIELD_NULL(28),
+       FIELD_NULL(31),
        {}
 };
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rasdaemon-0.6.1/mce-intel-p4-p6.c 
new/rasdaemon-0.6.2/mce-intel-p4-p6.c
--- old/rasdaemon-0.6.1/mce-intel-p4-p6.c       2018-04-25 12:33:39.000000000 
+0200
+++ new/rasdaemon-0.6.2/mce-intel-p4-p6.c       2018-08-14 19:11:02.000000000 
+0200
@@ -60,7 +60,7 @@
 };
 
 static struct field p6_shared_status[] = {
-       FIELD(16, NULL),
+       FIELD_NULL(16),
        FIELD(19, bus_queue_req_type),
        FIELD(25, bus_queue_error_type),
        FIELD(25, bus_queue_error_type),
@@ -68,7 +68,7 @@
        SBITFIELD(36, "received parity error on response transaction"),
        SBITFIELD(38, "timeout BINIT (ROB timeout)."
                  " No micro-instruction retired for some time"),
-       FIELD(39, NULL),
+       FIELD_NULL(39),
        SBITFIELD(42, "bus transaction received hard error response"),
        SBITFIELD(43, "failure that caused IERR"),
        /* The following are reserved for Core in the SDM. Let's keep them here 
anyways*/
@@ -76,15 +76,15 @@
        SBITFIELD(45, "uncorrectable ECC error"),
        SBITFIELD(46, "correctable ECC error"),
        /* [47..54]: ECC syndrome */
-       FIELD(55, NULL),
+       FIELD_NULL(55),
        {},
 };
 
 static struct field p6old_status[] = {
        SBITFIELD(28, "FRC error"),
        SBITFIELD(29, "BERR on this CPU"),
-       FIELD(31, NULL),
-       FIELD(32, NULL),
+       FIELD_NULL(31),
+       FIELD_NULL(32),
        SBITFIELD(35, "BINIT received from external bus"),
        SBITFIELD(37, "Received hard error reponse on split transaction (Bus 
BINIT)"),
        {}
@@ -94,9 +94,9 @@
        SBITFIELD(28, "MCE driven"),
        SBITFIELD(29, "MCE is observed"),
        SBITFIELD(31, "BINIT observed"),
-       FIELD(32, NULL),
+       FIELD_NULL(32),
        SBITFIELD(34, "PIC or FSB data parity error"),
-       FIELD(35, NULL),
+       FIELD_NULL(35),
        SBITFIELD(37, "FSB address parity error detected"),
        {}
 };
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rasdaemon-0.6.1/mce-intel-tulsa.c 
new/rasdaemon-0.6.2/mce-intel-tulsa.c
--- old/rasdaemon-0.6.1/mce-intel-tulsa.c       2018-04-25 12:33:39.000000000 
+0200
+++ new/rasdaemon-0.6.2/mce-intel-tulsa.c       2018-08-14 19:11:02.000000000 
+0200
@@ -39,7 +39,7 @@
        SBITFIELD(16, "Parity error detected during FSB request phase"),
        SBITFIELD(17, "Partity error detected on Core 0 request's address 
field"),
        SBITFIELD(18, "Partity error detected on Core 1 request's address 
field"),
-       FIELD(19, NULL),
+       FIELD_NULL(19),
        SBITFIELD(20, "Parity error on FSB response field detected"),
        SBITFIELD(21, "FSB data parity error on inbound date detected"),
        SBITFIELD(22, "Data parity error on data received from Core 0 
detected"),
@@ -48,8 +48,8 @@
        SBITFIELD(25, "Data ECC event to error on inbound data correctable or 
uncorrectable"),
        SBITFIELD(26, "Pad logic detected a data strobe glitch or sequencing 
error"),
        SBITFIELD(27, "Pad logic detected a request strobe glitch or sequencing 
error"),
-       FIELD(28, NULL),
-       FIELD(31, NULL),
+       FIELD_NULL(28),
+       FIELD_NULL(31),
        {}
 };
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rasdaemon-0.6.1/misc/rasdaemon.spec.in 
new/rasdaemon-0.6.2/misc/rasdaemon.spec.in
--- old/rasdaemon-0.6.1/misc/rasdaemon.spec.in  2018-04-25 12:33:39.000000000 
+0200
+++ new/rasdaemon-0.6.2/misc/rasdaemon.spec.in  2018-08-14 19:11:02.000000000 
+0200
@@ -57,6 +57,9 @@
 
 %changelog
 
+* Tue Aug 14 2018 Mauro Carvalho Chehab <mchehab+sams...@kernel.org>  0.6.2-1
+- Bump to version 0.6.2 with improvements for PCIe AER parsing and at 
ras-mc-ctl tool
+
 * Wed Apr 25 2018 Mauro Carvalho Chehab <mchehab+sams...@kernel.org>  0.6.1-1
 - Bump to version 0.6.1 adding support for Skylake Xeon MSCOD, a bug fix and 
some new DELL labels
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rasdaemon-0.6.1/new_ver.sh 
new/rasdaemon-0.6.2/new_ver.sh
--- old/rasdaemon-0.6.1/new_ver.sh      2018-04-25 12:33:39.000000000 +0200
+++ new/rasdaemon-0.6.2/new_ver.sh      2018-08-14 19:11:02.000000000 +0200
@@ -1,6 +1,7 @@
 #!/bin/bash
 
-autoreconf && ./configure --enable-sqlite3 --enable-aer --enable-mce 
--enable-extlog --enable-abrt-report
+autoreconf && ./configure --enable-sqlite3 --enable-aer --enable-non-standard 
--enable-arm --enable-mce --enable-extlog --enable-abrt-report 
--enable-hisi-ns-decode
+
 
 VER="`perl -ne 'print "$1\n" if (/Version:\s*(.*)/);' misc/rasdaemon.spec`"
 if [ "x$VER" == "x" ]; then
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rasdaemon-0.6.1/ras-aer-handler.c 
new/rasdaemon-0.6.2/ras-aer-handler.c
--- old/rasdaemon-0.6.1/ras-aer-handler.c       2018-04-25 12:33:39.000000000 
+0200
+++ new/rasdaemon-0.6.2/ras-aer-handler.c       2018-08-14 19:11:02.000000000 
+0200
@@ -26,7 +26,8 @@
 #include "bitfield.h"
 #include "ras-report.h"
 
-static const char *aer_errors[32] = {
+/* bit field meaning for correctable error */
+static const char *aer_cor_errors[32] = {
        /* Correctable errors */
        [0]  = "Receiver Error",
        [6]  = "Bad TLP",
@@ -34,7 +35,10 @@
        [8]  = "RELAY_NUM Rollover",
        [12] = "Replay Timer Timeout",
        [13] = "Advisory Non-Fatal",
+};
 
+/* bit field meaning for uncorrectable error */
+static const char *aer_uncor_errors[32] = {
        /* Uncorrectable errors */
        [4]  = "Data Link Protocol",
        [12] = "Poisoned TLP",
@@ -53,7 +57,8 @@
                         struct event_format *event, void *context)
 {
        int len;
-       unsigned long long val;
+       unsigned long long severity_val;
+       unsigned long long status_val;
        struct ras_events *ras = context;
        time_t now;
        struct tm *tm;
@@ -85,29 +90,35 @@
        if (!ev.dev_name)
                return -1;
 
-       if (pevent_get_field_val(s,  event, "status", record, &val, 1) < 0)
+       if (pevent_get_field_val(s,  event, "status", record, &status_val, 1) < 
0)
+               return -1;
+
+       if (pevent_get_field_val(s, event, "severity", record, &severity_val, 
1) < 0)
                return -1;
 
-       /* Fills the error buffer */
-       bitfield_msg(buf, sizeof(buf), aer_errors, 32, 0, 0, val);
+       /* Fills the error buffer. If it is a correctable error then use the
+        * aer_cor_errors bit field. Otherwise use aer_uncor_errors.
+        */
+       if (severity_val == HW_EVENT_AER_CORRECTED)
+               bitfield_msg(buf, sizeof(buf), aer_cor_errors, 32, 0, 0, 
status_val);
+       else
+               bitfield_msg(buf, sizeof(buf), aer_uncor_errors, 32, 0, 0, 
status_val);
        ev.msg = buf;
        trace_seq_printf(s, "%s ", ev.msg);
 
-       if (pevent_get_field_val(s, event, "severity", record, &val, 1) < 0)
-               return -1;
-       switch (val) {
-       case HW_EVENT_ERR_CORRECTED:
-               ev.error_type = "Corrected";
+       /* Use hw_event_aer_err_type switch between different severity_val */
+       switch (severity_val) {
+       case HW_EVENT_AER_UNCORRECTED_NON_FATAL:
+               ev.error_type = "Uncorrected (Non-Fatal)";
                break;
-       case HW_EVENT_ERR_UNCORRECTED:
-               ev.error_type = "Uncorrected";
+        case HW_EVENT_AER_UNCORRECTED_FATAL:
+               ev.error_type = "Uncorrected (Fatal)";
                break;
-       case HW_EVENT_ERR_FATAL:
-               ev.error_type = "Fatal";
+        case HW_EVENT_AER_CORRECTED:
+               ev.error_type = "Corrected";
                break;
        default:
-       case HW_EVENT_ERR_INFO:
-               ev.error_type = "Info";
+               ev.error_type = "Unknown severity";
        }
        trace_seq_puts(s, ev.error_type);
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rasdaemon-0.6.1/ras-events.h 
new/rasdaemon-0.6.2/ras-events.h
--- old/rasdaemon-0.6.1/ras-events.h    2018-04-25 12:33:39.000000000 +0200
+++ new/rasdaemon-0.6.2/ras-events.h    2018-08-14 19:11:02.000000000 +0200
@@ -68,6 +68,13 @@
        HW_EVENT_ERR_INFO,
 };
 
+/* Should match the code at Kernel's /drivers/pci/pcie/aer/aerdrv_errprint.c */
+enum hw_event_aer_err_type {
+       HW_EVENT_AER_UNCORRECTED_NON_FATAL,
+       HW_EVENT_AER_UNCORRECTED_FATAL,
+       HW_EVENT_AER_CORRECTED,
+};
+
 /* Should match the code at Kernel's include/acpi/ghes.h */
 enum ghes_severity {
        GHES_SEV_NO,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rasdaemon-0.6.1/ras-report.c 
new/rasdaemon-0.6.2/ras-report.c
--- old/rasdaemon-0.6.1/ras-report.c    2018-04-25 12:33:39.000000000 +0200
+++ new/rasdaemon-0.6.2/ras-report.c    2018-08-14 19:11:02.000000000 +0200
@@ -33,7 +33,8 @@
 
        memset(&addr, 0, sizeof(struct sockaddr_un));
        addr.sun_family = AF_UNIX;
-       strncpy(addr.sun_path, ABRT_SOCKET, strlen(ABRT_SOCKET));
+       strncpy(addr.sun_path, ABRT_SOCKET, sizeof(addr.sun_path));
+       addr.sun_path[sizeof(addr.sun_path) - 1] = '\0';
 
        rc = connect(sockfd, (struct sockaddr *)&addr, sizeof(struct 
sockaddr_un));
        if (rc < 0){
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rasdaemon-0.6.1/util/ras-mc-ctl.in 
new/rasdaemon-0.6.2/util/ras-mc-ctl.in
--- old/rasdaemon-0.6.1/util/ras-mc-ctl.in      2018-04-25 12:33:39.000000000 
+0200
+++ new/rasdaemon-0.6.2/util/ras-mc-ctl.in      2018-08-14 19:11:02.000000000 
+0200
@@ -50,6 +50,8 @@
 my %csrow_size  = ();
 my %rank_size   = ();
 my %csrow_ranks = ();
+my %dimm_ce_count = ();
+my %dimm_ue_count = ();
 
 my @layers;
 my @max_pos;
@@ -76,6 +78,7 @@
  --layout           Display the memory layout.
  --summary          Presents a summary of the logged errors.
  --errors           Shows the errors stored at the error database.
+ --error-count      Shows the corrected and uncorrected error counts using 
sysfs.
  --help             This help message.
 EOF
 
@@ -83,7 +86,7 @@
 
 if (  $conf{opt}{mainboard} || $conf{opt}{print_labels}
    || $conf{opt}{register_labels} || $conf{opt}{display_memory_layout}
-   || $conf{opt}{guess_dimm_label}) {
+   || $conf{opt}{guess_dimm_label} || $conf{opt}{error_count}) {
 
     get_mainboard_info();
 
@@ -105,6 +108,9 @@
     if ($conf{opt}{guess_dimm_label}) {
         guess_dimm_label ();
     }
+    if ($conf{opt}{error_count}) {
+        display_error_count ();
+    }
 }
 
 if ($conf{opt}{status}) {
@@ -134,6 +140,7 @@
     $conf{opt}{guess_dimm_label} = 0;
     $conf{opt}{summary} = 0;
     $conf{opt}{errors} = 0;
+    $conf{opt}{error_count} = 0;
 
     my $rref = \$conf{opt}{report};
     my $mref = \$conf{opt}{mainboard};
@@ -150,7 +157,8 @@
                          "status" =>          \$conf{opt}{status},
                          "layout" =>          
\$conf{opt}{display_memory_layout},
                          "summary" =>         \$conf{opt}{summary},
-                         "errors" =>          \$conf{opt}{errors}
+                         "errors" =>          \$conf{opt}{errors},
+                         "error-count" =>     \$conf{opt}{error_count}
             );
 
     usage(1) if !$rc;
@@ -284,6 +292,30 @@
         $dimm_label_file{$str_loc} = $file;
         $dimm_location{$str_loc} = $location;
 
+        my $count;
+
+        $file =~s/dimm_label/dimm_ce_count/;
+        if (-e $file) {
+                open IN, $file;
+                chomp($count = <IN>);
+                close IN;
+        } else {
+                log_error ("dimm_ce_count not found in sysfs. Old kernel?\n");
+                exit -1;
+        }
+        $dimm_ce_count{$str_loc} = $count;
+
+        $file =~s/dimm_ce_count/dimm_ue_count/;
+        if (-e $file) {
+                open IN, $file;
+                chomp($count = <IN>);
+                close IN;
+        } else {
+                log_error ("dimm_ue_count not found in sysfs. Old kernel?\n");
+                exit -1;
+        }
+        $dimm_ue_count{$str_loc} = $count;
+
         return;
     }
 }
@@ -906,6 +938,45 @@
     dimm_display_mem();
 }
 
+sub display_error_count
+{
+    my $sysfs_dir = "/sys/devices/system/edac/mc";
+    my $key;
+    my $max_width = 0;
+    my %dimm_labels = ();
+
+    find ({wanted => \&parse_dimm_nodes, no_chdir => 1}, $sysfs_dir);
+
+    if (!scalar(keys %dimm_node)) {
+        log_error ("No DIMMs found in /sys or new sysfs EDAC interface not 
found.\n");
+        exit -1;
+    }
+
+    foreach $key (keys %dimm_node) {
+        my $label_width;
+
+        open IN, $dimm_label_file{$key};
+        chomp(my $label = <IN>);
+        close IN;
+        $label_width = length $label;
+
+        if ($label_width > $max_width) {
+            $max_width = $label_width;
+        }
+        $dimm_labels{$key} = $label;
+    }
+    my $string = "Label";
+    $string .= " " x ($max_width - length $string);
+    print($string . "\tCE\tUE\n");
+
+    foreach $key (keys %dimm_node) {
+        my $ce_count = $dimm_ce_count{$key};
+        my $ue_count = $dimm_ue_count{$key};
+
+        print("$dimm_labels{$key}\t$ce_count\t$ue_count\n");
+    }
+}
+
 sub find_prog
 {
     my ($file) = @_;


Reply via email to