Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: [netbsd-11] src
Module Name: src
Committed By: martin
Date: Thu Apr 2 19:09:51 UTC 2026
Modified Files:
src/common/lib/libutil [netbsd-11]: snprintb.c
src/lib/libutil [netbsd-11]: snprintb.3
src/tests/lib/libutil [netbsd-11]: t_snprintb.c
Log Message:
Pull up following revision(s) (requested by rillig in ticket #229):
common/lib/libutil/snprintb.c: revision 1.50
common/lib/libutil/snprintb.c: revision 1.51
tests/lib/libutil/t_snprintb.c: revision 1.40
tests/lib/libutil/t_snprintb.c: revision 1.41
tests/lib/libutil/t_snprintb.c: revision 1.42
lib/libutil/snprintb.3: revision 1.40
lib/libutil/snprintb.3: revision 1.41
tests/lib/libutil/t_snprintb.c: revision 1.38
tests/lib/libutil/t_snprintb.c: revision 1.39
tests/snprintb: clean up comments
libutil/snprintb: allow 'f' to be combined with ':'
But only if the numeric value can be clearly distinguished from the
description. This style is used by sh3/dmacreg.h.
tests/snprintb: test for out-of-memory writes
In 2024, snprintb_m did that in a few scenarios.
tests/snprintb: ensure that the value has power-of-two digits
In direct calls to h_snprintb_m_len, several arguments are integers, so
provide a way to distinguish them visually by forcing the value to be
given in hexadecimal. The buffer sizes are typically given in decimal.
Prevent excess or forgotten digits by requiring the number of digits in
the value to be a power of two.
snprintb: allow 'F' and 'f' to be freely mixed with '=' and ':'
This restores the behavior from NetBSD 10.
While in most cases, 'f' is used with '=' and 'F' is used with ':',
there are useful cases for the other combinations as well, so allow
them.
To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.49.4.1 src/common/lib/libutil/snprintb.c
cvs rdiff -u -r1.39 -r1.39.4.1 src/lib/libutil/snprintb.3
cvs rdiff -u -r1.37 -r1.37.2.1 src/tests/lib/libutil/t_snprintb.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index