CVS commit: src/tests/lib/libutil

"Roland Illig" <[email protected]>
Newsgroups gmane.os.netbsd.devel.cvs
Message-ID <[email protected]>
Module Name:	src
Committed By:	rillig
Date:		Sat Mar 14 12:04:02 UTC 2026

Modified Files:
	src/tests/lib/libutil: t_snprintb.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.