]> git.ipfire.org Git - thirdparty/pciutils.git/commitdiff
Update license comments and added SPDX license identifiers
authorMartin Mares <mj@ucw.cz>
Sun, 18 Jun 2023 12:37:33 +0000 (14:37 +0200)
committerMartin Mares <mj@ucw.cz>
Sun, 18 Jun 2023 12:37:33 +0000 (14:37 +0200)
Previously, the only information about the specific version of GPL
was present in the README and individual source files mentioned only
GPL alone.

Let us update all copyright comments to explicitly say "GPL v2+"
and also include the machine readable SPDX license identifier.

57 files changed:
README
common.c
lib/access.c
lib/aix-device.c
lib/caps.c
lib/darwin.c
lib/dump.c
lib/ecam.c
lib/emulated.c
lib/fbsd-device.c
lib/filter.c
lib/generic.c
lib/header.h
lib/hurd.c
lib/i386-io-beos.h
lib/i386-io-cygwin.h
lib/i386-io-djgpp.h
lib/i386-io-haiku.h
lib/i386-io-hurd.h
lib/i386-io-linux.h
lib/i386-io-sunos.h
lib/i386-io-windows.h
lib/i386-ports.c
lib/init.c
lib/internal.h
lib/mmio-ports.c
lib/names-cache.c
lib/names-hash.c
lib/names-hwdb.c
lib/names-net.c
lib/names-parse.c
lib/names.c
lib/names.h
lib/nbsd-libpci.c
lib/obsd-device.c
lib/params.c
lib/pci.h
lib/pread.h
lib/proc.c
lib/sylixos-device.c
lib/sysdep.h
lib/sysfs.c
lib/types.h
lib/win32-cfgmgr32.c
lib/win32-kldbg.c
lib/win32-sysdbg.c
ls-caps-vendor.c
ls-caps.c
ls-ecaps.c
ls-kernel.c
ls-map.c
ls-tree.c
ls-vpd.c
lspci.c
lspci.h
pciutils.h
setpci.c

diff --git a/README b/README
index 1a981c299e2da5b7b17de690854f9619175aaba0..04e9348f5b5a601b31bce336e016d4f13d42dced 100644 (file)
--- 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
index 3d69dd0b4a5ab45384fa4f86f76147f3445a3b0e..748e5a4639d8580e10beb8c270356e14ad1b6be5 100644 (file)
--- 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>
index b8fdbe2319b5a717ddadd6eda22dc9e039205508..7d6612387233da28ba25e2d2433bdc427c971648 100644 (file)
@@ -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>
index 9355395c1b111dff03269c80071d59c537071a5e..028d92ae312503582d37efb72d486b225e2cb16e 100644 (file)
@@ -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
  */
 
 /*
index 039c86f7e206a6bf5ec7a7bb0b85491a65eaacfa..cf1df5d581121a62978630ec864b75345199092c 100644 (file)
@@ -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>
index 9167393efe164bba7ea757f82a68e45e0a89a13f..8ae90082c8af017a88974aa6a88a157c49b641cc 100644 (file)
@@ -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>
index c0f929133973ad079ab3895cdb2bbe726f99d94e..8b7320a05ba83feccb51569d46c0f4ff47fc8cff 100644 (file)
@@ -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>
index aa3b60aab386cbb6da51ed51b239c856f7441b61..961e4162d1dd1837e9a6b61d051c4d9ed3723567 100644 (file)
@@ -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
  */
 
 /*
index d15c8f7eed32a14a76f950bf565b169594e715fe..92cd06e96bb8f95c4b8ac208f53b4dacef97cda3 100644 (file)
@@ -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"
index 604c8f02189a02fc814171989ddfd9ccdc4d7bbd..2ea5e84402e690ddbbacb2687867792104bad1c3 100644 (file)
@@ -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>
index 86486d3c7d0f31e2195aa5a91f92b3877a6f0809..0301f49f93ff76e6a29f6d781817c2dfd4f83886 100644 (file)
@@ -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>
index 6211c90fbe607d76177925b58049fbae22237fec..f7340a2b16d1f7ae4be99e418d82863107c8f6d7 100644 (file)
@@ -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>
index 63ee03c895a7e15e97b181615096f0028bb992c6..e146a56b7945a215065a41245a3a8d1f40189b45 100644 (file)
@@ -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
  */
 
 /*
index c5a381e78fa91999093c113f920fa34b645cb607..a9c9b893c4924297d21a452cebd963d7a0884491 100644 (file)
@@ -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
index 15f391b35e21b7d7b9dab6136d4908d7cff3e55d..49b70949273a74a8b03ce88dab3f5338014c5220 100644 (file)
@@ -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 */
index a8501ccdcff0366bd60cab4218ae48b8c9368067..0b71d16c3ff635bc71e0d6173cee4bbcc9ee3ed9 100644 (file)
@@ -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>
index 53f2f4e9bdc0a9760c0af400dbc02e08fc3aff99..bb295266901634dd70e7fff6593522a64f105d0f 100644 (file)
@@ -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>
index dd0094162a24005d93523f09616bd134a6472f92..ce5362be82a6d7f7dae5cc87d1e4406a2f7f2a32 100644 (file)
@@ -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>
index 000fd4204ac669fa681034798b96922bde7328ef..d44b2f537e856848b06daafc4706564097ff1f9e 100644 (file)
@@ -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>
index a2fd69e502aaee1688e0830ee62382b55ff344e1..e6bb9b6e1187b9f9b98d7eb05622e2ca5c278496 100644 (file)
@@ -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>
index 903ad7c6a3be88ccfd206f5b81f254af64998c24..86948d9316c8063e406f9a7fedb4193ee9efa548 100644 (file)
@@ -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>
index 6bb578cb40d74c0fccefc119e66e858ad8b9b4d3..fd1a54e24b73e2a4664787936d75557d2eb2064d 100644 (file)
@@ -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>
index 0ca87ddda2ab731448dcd12912fc644eda7425e8..1e2c4028e08dca240bee387c9b0d0e443cf76f5f 100644 (file)
@@ -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
index fe40f91ccc36c1d4fd5c52595116ab78899f1340..347668163f7a9f9a0b6d75227022b19f5a4ae3b8 100644 (file)
@@ -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>
index ebd16f45648b746dd65a22a90e4cac6733e81ac4..00ac401ec5a3e07d3165b391d59b7ec9d01dd0c1 100644 (file)
@@ -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"
index a9e23c34966365f96266ae5a2130b51c3df57525..f380cb3ec63b2bcb984b3f9071dc50aa65f0aeed 100644 (file)
@@ -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
  */
 
 /*
index ba5de6d678f71d18fbb2476dced4f237d3d9b28b..65bfb85acbc5bf76e70bd5515b0fa08f9efc1b62 100644 (file)
@@ -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"
index 2f5bc3cf21e9bd807753f93d8b206c10877ec065..8c7567604acb8595b05e0e7b42f3a514a458e098 100644 (file)
@@ -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>
index 171723b68639c29578087d8ebf900cd6c584610c..71e7229470eacfe341fd4a023c9583fe576785f1 100644 (file)
@@ -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>
index 95a6fd2654cd26cb378efad050b8fbd225bc1e07..14141f4c2be879cd6d96e740422f3acea16d9579 100644 (file)
@@ -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>
index c86f8af3462f158b9ffabadffaf2dff1bcf1481a..f50b8ecd3dacb157e8d31252704064f4318e11f8 100644 (file)
@@ -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>
index a4314f61c91be1128678a8fa86df283407e20b69..f8d39971c84ffb1759d2daee87d7539e4868d554 100644 (file)
@@ -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>
index d7e71ff7183a8edd67123b4edb4e24d6ec10db17..b34e3e645e6fe30842919aac0cd4ec6247a2100e 100644 (file)
@@ -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
index 2b2ca4166d2a762ef9b5648d1fd112ce34cd1505..0f9f27b0f11b89747df9b8309bee4416ea4ee038 100644 (file)
@@ -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
  */
 
 /*
index 71cde5eb32c48bcb2fdec7c439c5409fd36c1b36..e2e7652bcd75b32418af6d23e8561c0fca410639 100644 (file)
@@ -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>
index 979fb16dcaa53b41dcf29ca1f22a173cf249c4be..ac756ad79a313661e13f3d67cf85ec5e3cd43bf6 100644 (file)
@@ -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>
index cb032a13f119b1b52313092373445dec4e305cea..2322bf73be8433875c8f4dde629f21d34aafbd47 100644 (file)
--- 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
index 3db90e3e182a3a82912660905598cd462de35962..99a91b2d6c55040c237e232a3df3cab5af991cb8 100644 (file)
@@ -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
  */
 
 /*
index 9b33863e69e68cfdbc42821c2d87b9fcbd647359..2eb5dc5b43e3c8612f05660b6924e8e1aac97e83 100644 (file)
@@ -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
index 07195d562a6f0b092ceb7c7206fae91c92254095..170ae02bf644841a25a3c2cc8e29f52a180cc95b 100644 (file)
@@ -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
index bdeb34a193f9d6b22479dd5d58a6da3eb7afa4ff..750203573f006dd1b088a00e0ec4f788ece2ee15 100644 (file)
@@ -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__
index ffa4f9d63d34916fe91945b0e83040049d95c564..8cab869306894822344597ea7875c1e2416e8de3 100644 (file)
@@ -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
index ab53f7c8bb9c741cf1a2eb53e7325bc54c7fba62..200490648bfed104a9a356f2de88e770ee64528c 100644 (file)
@@ -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>
index 9743002af73c7c49637dff11db7d4e99b2cc9d59..0bcc0aa3c06bbbd0e2ae21b2b740349780238287 100644 (file)
@@ -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>
index 4c8ee5405496e6b006421bf99dc5c3f8533b536c..9593a05efd22fcf9ed9a130e066d9f7b26eb94b3 100644 (file)
@@ -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>
index 5d0c07a733624883ef598b4ecddbd6a19a83ff35..6b17f3774a1a6de6fbc02ee5a89d9385c2736036 100644 (file)
@@ -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>
index dc24f90002a2f7bc1753d38b465f0af1ff829387..829d59f5b66bb8a5670221516c3109efb265c548 100644 (file)
@@ -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>
index a481b16b8578a9e717954be8629c07244d15e04b..1b63262ef005af674043193e680641ffa884a73f 100644 (file)
--- 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>
index df41626f69e1ffdba001285d6087903cdde00c1b..1bd1bf7b7418582b127b26d8cd3e047689f56533 100644 (file)
@@ -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>
index b90a469f7056f69c5d3adc72b1674002b7aecedf..c939c52867e61ac76c67fddd12dcc7b043bc328f 100644 (file)
@@ -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>
index 9b2cc8cfa72db2a248ea323cf522b7ff36638f6e..a77eb0c85f55ab3b9bc176be358f6bf234900bc2 100644 (file)
--- 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>
index e21e44ce3cdb9160ce4a3248943ba38e5f9221c7..5189930e70f2cb1dd6f7628ca7cf656cf3fd9c64 100644 (file)
--- 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>
index 92627e4f403f81e7bec5f1ad854daa9613dbcf5f..fcb80ae030eabdc2d61378103349908cc58f4f0e 100644 (file)
--- 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 0a96260829d891392a1bca6efbf178e7eeb07bdd..9452cd31a2b0a830f876fd11e13239fd625f9106 100644 (file)
--- 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 160c65a2a968ddde2c1721e8ca7ecd407a06504e..c5a9ec726871770cbeb23206a2530c63610997a1 100644 (file)
--- 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
index 17e02c9bb82db78eedab52c5540d5378b1db10a3..95c26e64f3d00e19c8b5424e65f3fd4112c3a290 100644 (file)
@@ -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"
index ca1f31df4c5a158559e13e8d1280188bbfa98d18..d2df573400205b268792c162a45758b6c5037bc8 100644 (file)
--- 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>