Skip to content

Commit a00fd2a

Browse files
authored
Merge pull request systemd#21800 from keszybz/net-id-debugging
Add more debugging info to udev builtin net_id
2 parents 415d7d7 + edee65a commit a00fd2a

File tree

5 files changed

+134
-64
lines changed

5 files changed

+134
-64
lines changed

man/sd_journal_next.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
<para><function>sd_journal_next_skip()</function> and
8181
<function>sd_journal_previous_skip()</function> advance/set back the read pointer by multiple
8282
entries at once, as specified in the <varname>skip</varname> parameter. The <varname>skip</varname>
83-
parameter must be less than or equal to 2147483647 (2^31-1).</para>
83+
parameter must be less than or equal to 2147483647 (2³¹-1).</para>
8484

8585
<para>The journal is strictly ordered by reception time, and hence
8686
advancing to the next entry guarantees that the entry then

man/systemd-journald.service.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
</para>
7272

7373
<para>Log data collected by the journal is primarily text-based but can also include binary data where
74-
necessary. Individual fields making up a log record stored in the journal may be up to 2^64-1 bytes in size.</para>
74+
necessary. Individual fields making up a log record stored in the journal may be up to 2⁶⁴-1 bytes in size.</para>
7575

7676
<para>The journal service stores log data either persistently below <filename>/var/log/journal</filename> or in a
7777
volatile way below <filename>/run/log/journal/</filename> (in the latter case it is lost at reboot). By default, log

man/systemd.net-naming-scheme.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -384,10 +384,10 @@
384384
numbers, which could either result in an incorrect value of the <varname>ID_NET_NAME_SLOT</varname>
385385
property or none at all.</para>
386386

387-
<para>Some firmware and hypervisor implementations report unreasonable high numbers for the onboard
387+
<para>Some firmware and hypervisor implementations report unreasonably high numbers for the onboard
388388
index. To prevent the generation of bogus onbard interface names, index numbers greater than 16381
389-
(2^14-1) were ignored. For s390 PCI devices index values up to 65535 (2^16-1) are valid. To account
390-
for that, the limit is increased to now 65535.</para>
389+
(2¹⁴-1) were ignored. For s390 PCI devices index values up to 65535 (2¹⁶-1) are valid. To account
390+
for that, the limit was increased to 65535.</para>
391391

392392
<para>The udev rule <varname>NAME=</varname> replaces <literal>:</literal>,
393393
<literal>/</literal>, and <literal>%</literal> with an underscore (<literal>_</literal>), and

src/basic/string-util.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ static inline const char *empty_to_null(const char *p) {
6060
return isempty(p) ? NULL : p;
6161
}
6262

63+
static inline const char *empty_to_na(const char *p) {
64+
return isempty(p) ? "n/a" : p;
65+
}
66+
6367
static inline const char *empty_to_dash(const char *str) {
6468
return isempty(str) ? "-" : str;
6569
}

0 commit comments

Comments
 (0)