aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README2
-rw-r--r--common.c4
-rw-r--r--lib/access.c4
-rw-r--r--lib/aix-device.c4
-rw-r--r--lib/caps.c4
-rw-r--r--lib/darwin.c4
-rw-r--r--lib/dump.c4
-rw-r--r--lib/ecam.c4
-rw-r--r--lib/emulated.c4
-rw-r--r--lib/fbsd-device.c4
-rw-r--r--lib/filter.c4
-rw-r--r--lib/generic.c4
-rw-r--r--lib/header.h4
-rw-r--r--lib/hurd.c4
-rw-r--r--lib/i386-io-beos.h4
-rw-r--r--lib/i386-io-cygwin.h4
-rw-r--r--lib/i386-io-djgpp.h4
-rw-r--r--lib/i386-io-haiku.h4
-rw-r--r--lib/i386-io-hurd.h4
-rw-r--r--lib/i386-io-linux.h4
-rw-r--r--lib/i386-io-sunos.h4
-rw-r--r--lib/i386-io-windows.h4
-rw-r--r--lib/i386-ports.c4
-rw-r--r--lib/init.c4
-rw-r--r--lib/internal.h4
-rw-r--r--lib/mmio-ports.c4
-rw-r--r--lib/names-cache.c4
-rw-r--r--lib/names-hash.c4
-rw-r--r--lib/names-hwdb.c4
-rw-r--r--lib/names-net.c4
-rw-r--r--lib/names-parse.c4
-rw-r--r--lib/names.c4
-rw-r--r--lib/names.h4
-rw-r--r--lib/nbsd-libpci.c4
-rw-r--r--lib/obsd-device.c4
-rw-r--r--lib/params.c4
-rw-r--r--lib/pci.h4
-rw-r--r--lib/pread.h4
-rw-r--r--lib/proc.c4
-rw-r--r--lib/sylixos-device.c8
-rw-r--r--lib/sysdep.h4
-rw-r--r--lib/sysfs.c4
-rw-r--r--lib/types.h4
-rw-r--r--lib/win32-cfgmgr32.c4
-rw-r--r--lib/win32-kldbg.c4
-rw-r--r--lib/win32-sysdbg.c4
-rw-r--r--ls-caps-vendor.c4
-rw-r--r--ls-caps.c4
-rw-r--r--ls-ecaps.c4
-rw-r--r--ls-kernel.c4
-rw-r--r--ls-map.c4
-rw-r--r--ls-tree.c4
-rw-r--r--ls-vpd.c4
-rw-r--r--lspci.c4
-rw-r--r--lspci.h4
-rw-r--r--pciutils.h4
-rw-r--r--setpci.c4
57 files changed, 171 insertions, 59 deletions
diff --git a/README b/README
index 1a981c2..04e9348 100644
--- a/README
+++ b/README
@@ -1,6 +1,6 @@
This package contains the PCI Utilities, version @VERSION@.
-Copyright (c) 1997--2022 Martin Mares <mj@ucw.cz>
+Copyright (c) 1997--2023 Martin Mares <mj@ucw.cz>
All files in this package can be freely distributed and used according
to the terms of the GNU General Public License, either version 2 or
diff --git a/common.c b/common.c
index 3d69dd0..748e5a4 100644
--- a/common.c
+++ b/common.c
@@ -3,7 +3,9 @@
*
* Copyright (c) 1997--2016 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <stdio.h>
diff --git a/lib/access.c b/lib/access.c
index b8fdbe2..7d66123 100644
--- a/lib/access.c
+++ b/lib/access.c
@@ -3,7 +3,9 @@
*
* Copyright (c) 1997--2022 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <stdio.h>
diff --git a/lib/aix-device.c b/lib/aix-device.c
index 9355395..028d92a 100644
--- a/lib/aix-device.c
+++ b/lib/aix-device.c
@@ -3,7 +3,9 @@
*
* Copyright (c) 1999 Jari Kirma <kirma@cs.hut.fi>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
/*
diff --git a/lib/caps.c b/lib/caps.c
index 039c86f..cf1df5d 100644
--- a/lib/caps.c
+++ b/lib/caps.c
@@ -3,7 +3,9 @@
*
* Copyright (c) 2008 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <string.h>
diff --git a/lib/darwin.c b/lib/darwin.c
index 9167393..8ae9008 100644
--- a/lib/darwin.c
+++ b/lib/darwin.c
@@ -3,7 +3,9 @@
*
* Copyright (c) 2013 Apple, Inc.
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <errno.h>
diff --git a/lib/dump.c b/lib/dump.c
index c0f9291..8b7320a 100644
--- a/lib/dump.c
+++ b/lib/dump.c
@@ -3,7 +3,9 @@
*
* Copyright (c) 1997--2008 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <stdio.h>
diff --git a/lib/ecam.c b/lib/ecam.c
index aa3b60a..961e416 100644
--- a/lib/ecam.c
+++ b/lib/ecam.c
@@ -3,7 +3,9 @@
*
* Copyright (c) 2023 Pali Rohár <pali@kernel.org>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
/*
diff --git a/lib/emulated.c b/lib/emulated.c
index d15c8f7..92cd06e 100644
--- a/lib/emulated.c
+++ b/lib/emulated.c
@@ -3,7 +3,9 @@
*
* Copyright (c) 2022 Pali Rohár
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "internal.h"
diff --git a/lib/fbsd-device.c b/lib/fbsd-device.c
index 604c8f0..2ea5e84 100644
--- a/lib/fbsd-device.c
+++ b/lib/fbsd-device.c
@@ -5,7 +5,9 @@
* Updated in 2003 by Samy Al Bahra <samy@kerneled.com>
* Updated in 2017 by Imre Vadász <imrevdsz@gmail.com>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <errno.h>
diff --git a/lib/filter.c b/lib/filter.c
index 86486d3..0301f49 100644
--- a/lib/filter.c
+++ b/lib/filter.c
@@ -3,7 +3,9 @@
*
* Copyright (c) 1998--2022 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <stdlib.h>
diff --git a/lib/generic.c b/lib/generic.c
index 6211c90..f7340a2 100644
--- a/lib/generic.c
+++ b/lib/generic.c
@@ -3,7 +3,9 @@
*
* Copyright (c) 1997--2022 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <string.h>
diff --git a/lib/header.h b/lib/header.h
index 63ee03c..e146a56 100644
--- a/lib/header.h
+++ b/lib/header.h
@@ -3,7 +3,9 @@
*
* Copyright (c) 1997--2010 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
/*
diff --git a/lib/hurd.c b/lib/hurd.c
index c5a381e..a9c9b89 100644
--- a/lib/hurd.c
+++ b/lib/hurd.c
@@ -3,7 +3,9 @@
*
* Copyright (c) 2017 Joan Lledó <jlledom@member.fsf.org>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#define _GNU_SOURCE
diff --git a/lib/i386-io-beos.h b/lib/i386-io-beos.h
index 15f391b..49b7094 100644
--- a/lib/i386-io-beos.h
+++ b/lib/i386-io-beos.h
@@ -3,7 +3,9 @@
*
* Copyright (c) 2009 Francois Revol <revol@free.fr>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
/* those are private syscalls */
diff --git a/lib/i386-io-cygwin.h b/lib/i386-io-cygwin.h
index a8501cc..0b71d16 100644
--- a/lib/i386-io-cygwin.h
+++ b/lib/i386-io-cygwin.h
@@ -3,7 +3,9 @@
*
* Copyright (c) 1997--2006 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <sys/io.h>
diff --git a/lib/i386-io-djgpp.h b/lib/i386-io-djgpp.h
index 53f2f4e..bb29526 100644
--- a/lib/i386-io-djgpp.h
+++ b/lib/i386-io-djgpp.h
@@ -3,7 +3,9 @@
*
* Copyright (c) 2010, 2017 Rudolf Marek <r.marek@assembler.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <pc.h>
diff --git a/lib/i386-io-haiku.h b/lib/i386-io-haiku.h
index dd00941..ce5362b 100644
--- a/lib/i386-io-haiku.h
+++ b/lib/i386-io-haiku.h
@@ -3,7 +3,9 @@
*
* Copyright (c) 2009 Francois Revol <revol@free.fr>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <Drivers.h>
diff --git a/lib/i386-io-hurd.h b/lib/i386-io-hurd.h
index 000fd42..d44b2f5 100644
--- a/lib/i386-io-hurd.h
+++ b/lib/i386-io-hurd.h
@@ -7,7 +7,9 @@
* Thomas Schwinge <tschwinge@gnu.org>
* Copyright (c) 2007 Thomas Schwinge <tschwinge@gnu.org>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <sys/io.h>
diff --git a/lib/i386-io-linux.h b/lib/i386-io-linux.h
index a2fd69e..e6bb9b6 100644
--- a/lib/i386-io-linux.h
+++ b/lib/i386-io-linux.h
@@ -3,7 +3,9 @@
*
* Copyright (c) 1997--2006 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <sys/io.h>
diff --git a/lib/i386-io-sunos.h b/lib/i386-io-sunos.h
index 903ad7c..86948d9 100644
--- a/lib/i386-io-sunos.h
+++ b/lib/i386-io-sunos.h
@@ -4,7 +4,9 @@
* Copyright (c) 2003 Bill Moore <billm@eng.sun.com>
* Copyright (c) 2003--2006 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <sys/sysi86.h>
diff --git a/lib/i386-io-windows.h b/lib/i386-io-windows.h
index 6bb578c..fd1a54e 100644
--- a/lib/i386-io-windows.h
+++ b/lib/i386-io-windows.h
@@ -5,7 +5,9 @@
* Copyright (c) 2006 Martin Mares <mj@ucw.cz>
* Copyright (c) 2021 Pali Rohár <pali@kernel.org>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <io.h>
diff --git a/lib/i386-ports.c b/lib/i386-ports.c
index 0ca87dd..1e2c402 100644
--- a/lib/i386-ports.c
+++ b/lib/i386-ports.c
@@ -3,7 +3,9 @@
*
* Copyright (c) 1997--2006 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#define _GNU_SOURCE
diff --git a/lib/init.c b/lib/init.c
index fe40f91..3476681 100644
--- a/lib/init.c
+++ b/lib/init.c
@@ -3,7 +3,9 @@
*
* Copyright (c) 1997--2018 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <stdio.h>
diff --git a/lib/internal.h b/lib/internal.h
index ebd16f4..00ac401 100644
--- a/lib/internal.h
+++ b/lib/internal.h
@@ -3,7 +3,9 @@
*
* Copyright (c) 1997--2022 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "config.h"
diff --git a/lib/mmio-ports.c b/lib/mmio-ports.c
index a9e23c3..f380cb3 100644
--- a/lib/mmio-ports.c
+++ b/lib/mmio-ports.c
@@ -3,7 +3,9 @@
*
* Copyright (c) 2022 Pali Rohár <pali@kernel.org>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
/*
diff --git a/lib/names-cache.c b/lib/names-cache.c
index ba5de6d..65bfb85 100644
--- a/lib/names-cache.c
+++ b/lib/names-cache.c
@@ -3,7 +3,9 @@
*
* Copyright (c) 2008--2009 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "internal.h"
diff --git a/lib/names-hash.c b/lib/names-hash.c
index 2f5bc3c..8c75676 100644
--- a/lib/names-hash.c
+++ b/lib/names-hash.c
@@ -3,7 +3,9 @@
*
* Copyright (c) 1997--2008 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <string.h>
diff --git a/lib/names-hwdb.c b/lib/names-hwdb.c
index 171723b..71e7229 100644
--- a/lib/names-hwdb.c
+++ b/lib/names-hwdb.c
@@ -4,7 +4,9 @@
* Copyright (c) 2013--2014 Tom Gundersen <teg@jklm.no>
* Copyright (c) 2014 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <string.h>
diff --git a/lib/names-net.c b/lib/names-net.c
index 95a6fd2..14141f4 100644
--- a/lib/names-net.c
+++ b/lib/names-net.c
@@ -3,7 +3,9 @@
*
* Copyright (c) 2007--2008 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <string.h>
diff --git a/lib/names-parse.c b/lib/names-parse.c
index c86f8af..f50b8ec 100644
--- a/lib/names-parse.c
+++ b/lib/names-parse.c
@@ -3,7 +3,9 @@
*
* Copyright (c) 1997--2008 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <stdio.h>
diff --git a/lib/names.c b/lib/names.c
index a4314f6..f8d3997 100644
--- a/lib/names.c
+++ b/lib/names.c
@@ -3,7 +3,9 @@
*
* Copyright (c) 1997--2014 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <stdio.h>
diff --git a/lib/names.h b/lib/names.h
index d7e71ff..b34e3e6 100644
--- a/lib/names.h
+++ b/lib/names.h
@@ -3,7 +3,9 @@
*
* Copyright (c) 1997--2014 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#define MAX_LINE 1024
diff --git a/lib/nbsd-libpci.c b/lib/nbsd-libpci.c
index 2b2ca41..0f9f27b 100644
--- a/lib/nbsd-libpci.c
+++ b/lib/nbsd-libpci.c
@@ -6,7 +6,9 @@
* Copyright (c) 2002 Quentin Garnier <cube@cubidou.net>
* Copyright (c) 2002 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
/*
diff --git a/lib/obsd-device.c b/lib/obsd-device.c
index 71cde5e..e2e7652 100644
--- a/lib/obsd-device.c
+++ b/lib/obsd-device.c
@@ -3,7 +3,9 @@
*
* Adapted from fbsd-device.c by Matthieu Herrb <matthieu.herrb@laas.fr>, 2006
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <fcntl.h>
diff --git a/lib/params.c b/lib/params.c
index 979fb16..ac756ad 100644
--- a/lib/params.c
+++ b/lib/params.c
@@ -3,7 +3,9 @@
*
* Copyright (c) 2008--2023 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <stdio.h>
diff --git a/lib/pci.h b/lib/pci.h
index cb032a1..2322bf7 100644
--- a/lib/pci.h
+++ b/lib/pci.h
@@ -3,7 +3,9 @@
*
* Copyright (c) 1997--2023 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef _PCI_LIB_H
diff --git a/lib/pread.h b/lib/pread.h
index 3db90e3..99a91b2 100644
--- a/lib/pread.h
+++ b/lib/pread.h
@@ -3,7 +3,9 @@
*
* Copyright (c) 1997--2003 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
/*
diff --git a/lib/proc.c b/lib/proc.c
index 9b33863..2eb5dc5 100644
--- a/lib/proc.c
+++ b/lib/proc.c
@@ -3,7 +3,9 @@
*
* Copyright (c) 1997--2003 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#define _GNU_SOURCE
diff --git a/lib/sylixos-device.c b/lib/sylixos-device.c
index 07195d5..170ae02 100644
--- a/lib/sylixos-device.c
+++ b/lib/sylixos-device.c
@@ -1,9 +1,11 @@
/*
- * The PCI Library -- Direct Configuration access via SylixOS Ports
+ * The PCI Library -- Direct Configuration access via SylixOS Ports
*
- * Copyright (c) 2018 YuJian.Gong <gongyujian@acoinfo.com>
+ * Copyright (c) 2018 YuJian.Gong <gongyujian@acoinfo.com>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#define _GNU_SOURCE
diff --git a/lib/sysdep.h b/lib/sysdep.h
index bdeb34a..7502035 100644
--- a/lib/sysdep.h
+++ b/lib/sysdep.h
@@ -3,7 +3,9 @@
*
* Copyright (c) 1997--2020 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifdef __GNUC__
diff --git a/lib/sysfs.c b/lib/sysfs.c
index ffa4f9d..8cab869 100644
--- a/lib/sysfs.c
+++ b/lib/sysfs.c
@@ -4,7 +4,9 @@
* Copyright (c) 2003 Matthew Wilcox <matthew@wil.cx>
* Copyright (c) 1997--2008 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#define _GNU_SOURCE
diff --git a/lib/types.h b/lib/types.h
index ab53f7c..2004906 100644
--- a/lib/types.h
+++ b/lib/types.h
@@ -3,7 +3,9 @@
*
* Copyright (c) 1997--2022 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <sys/types.h>
diff --git a/lib/win32-cfgmgr32.c b/lib/win32-cfgmgr32.c
index 9743002..0bcc0aa 100644
--- a/lib/win32-cfgmgr32.c
+++ b/lib/win32-cfgmgr32.c
@@ -3,7 +3,9 @@
*
* Copyright (c) 2021 Pali Rohár <pali@kernel.org>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <windows.h>
diff --git a/lib/win32-kldbg.c b/lib/win32-kldbg.c
index 4c8ee54..9593a05 100644
--- a/lib/win32-kldbg.c
+++ b/lib/win32-kldbg.c
@@ -3,7 +3,9 @@
*
* Copyright (c) 2022 Pali Rohár <pali@kernel.org>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <windows.h>
diff --git a/lib/win32-sysdbg.c b/lib/win32-sysdbg.c
index 5d0c07a..6b17f37 100644
--- a/lib/win32-sysdbg.c
+++ b/lib/win32-sysdbg.c
@@ -3,7 +3,9 @@
*
* Copyright (c) 2022 Pali Rohár <pali@kernel.org>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <windows.h>
diff --git a/ls-caps-vendor.c b/ls-caps-vendor.c
index dc24f90..829d59f 100644
--- a/ls-caps-vendor.c
+++ b/ls-caps-vendor.c
@@ -3,7 +3,9 @@
*
* Copyright (c) 2014 Gerd Hoffmann <kraxel@redhat.com>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <stdio.h>
diff --git a/ls-caps.c b/ls-caps.c
index a481b16..1b63262 100644
--- a/ls-caps.c
+++ b/ls-caps.c
@@ -3,7 +3,9 @@
*
* Copyright (c) 1997--2018 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <stdio.h>
diff --git a/ls-ecaps.c b/ls-ecaps.c
index df41626..1bd1bf7 100644
--- a/ls-ecaps.c
+++ b/ls-ecaps.c
@@ -3,7 +3,9 @@
*
* Copyright (c) 1997--2022 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <stdio.h>
diff --git a/ls-kernel.c b/ls-kernel.c
index b90a469..c939c52 100644
--- a/ls-kernel.c
+++ b/ls-kernel.c
@@ -3,7 +3,9 @@
*
* Copyright (c) 1997--2013 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <stdio.h>
diff --git a/ls-map.c b/ls-map.c
index 9b2cc8c..a77eb0c 100644
--- a/ls-map.c
+++ b/ls-map.c
@@ -3,7 +3,9 @@
*
* Copyright (c) 1997--2008 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <stdio.h>
diff --git a/ls-tree.c b/ls-tree.c
index e21e44c..5189930 100644
--- a/ls-tree.c
+++ b/ls-tree.c
@@ -3,7 +3,9 @@
*
* Copyright (c) 1997--2021 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <stdarg.h>
diff --git a/ls-vpd.c b/ls-vpd.c
index 92627e4..fcb80ae 100644
--- a/ls-vpd.c
+++ b/ls-vpd.c
@@ -6,7 +6,9 @@
* Written by Ben Hutchings <bhutchings@solarflare.com>
* Improved by Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <stdio.h>
diff --git a/lspci.c b/lspci.c
index 0a96260..9452cd3 100644
--- a/lspci.c
+++ b/lspci.c
@@ -3,7 +3,9 @@
*
* Copyright (c) 1997--2020 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <stdio.h>
diff --git a/lspci.h b/lspci.h
index 160c65a..c5a9ec7 100644
--- a/lspci.h
+++ b/lspci.h
@@ -3,7 +3,9 @@
*
* Copyright (c) 1997--2018 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#define PCIUTILS_LSPCI
diff --git a/pciutils.h b/pciutils.h
index 17e02c9..95c26e6 100644
--- a/pciutils.h
+++ b/pciutils.h
@@ -3,7 +3,9 @@
*
* Copyright (c) 1997--2018 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "lib/pci.h"
diff --git a/setpci.c b/setpci.c
index ca1f31d..d2df573 100644
--- a/setpci.c
+++ b/setpci.c
@@ -3,7 +3,9 @@
*
* Copyright (c) 1998--2020 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <stdio.h>