CVS log for src/common/lib/libutil/snprintb.c
Up to [cvs.NetBSD.org] / src / common / lib / libutil
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.49: download - view: text, markup, annotated - select for diffs
Sun Jun 16 19:41:39 2024 UTC (5 months, 3 weeks ago) by rillig
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
HEAD
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +12 -8
lines
libutil/snprintb: factor out common subexpression
GCC 10 was not able to optimize the code size on its own, so offer a
little help.
Revision 1.48: download - view: text, markup, annotated - select for diffs
Sun Apr 7 15:20:16 2024 UTC (8 months ago) by rillig
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +9 -6
lines
snprintb: reject empty bit descriptions and wrongly placed defaults
Revision 1.47: download - view: text, markup, annotated - select for diffs
Sun Apr 7 12:05:23 2024 UTC (8 months ago) by rillig
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +13 -4
lines
snprintb: reject combinations of 'f' with ':' as well as 'F' with '='
These combinations would lead to garbled output.
Revision 1.46: download - view: text, markup, annotated - select for diffs
Sun Apr 7 10:10:54 2024 UTC (8 months ago) by rillig
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +11 -3
lines
snprintb: reject empty descriptions
In cases where the snprintb output is garbled, it is not trustworthy, so
make sure the mistakes in the bitfmt are fixed early.
Revision 1.45: download - view: text, markup, annotated - select for diffs
Mon Apr 1 08:53:42 2024 UTC (8 months, 1 week ago) by rillig
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +3 -12
lines
snprintb: remove redundant memset in kernel mode
The provided buffer is already null-terminated by finish_buffer, even in
error cases, there is no need to repeat the same work.
Revision 1.44: download - view: text, markup, annotated - select for diffs
Mon Mar 25 20:39:26 2024 UTC (8 months, 2 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +15 -7
lines
snprintb: mark the end of the buffer if the buffer is too small
This avoids confusion in case the buffer ends with an incomplete number.
Revision 1.43: download - view: text, markup, annotated - select for diffs
Tue Mar 5 07:37:08 2024 UTC (9 months, 1 week ago) by rillig
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +28 -33
lines
snprintb: shrink code size, both in source and binary
Revision 1.42: download - view: text, markup, annotated - select for diffs
Mon Mar 4 21:35:28 2024 UTC (9 months, 1 week ago) by rillig
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +4 -4
lines
snprintb: error out on unknown new-style formatting directive
Revision 1.41: download - view: text, markup, annotated - select for diffs
Sat Feb 24 12:44:11 2024 UTC (9 months, 2 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +28 -36
lines
snprintb: clean up
Use consistent data types for buffer positions and lengths, to avoid
type casts.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Sat Feb 24 12:40:00 2024 UTC (9 months, 2 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +5 -5
lines
snprintb: allow non-ASCII descriptions on all platforms
Previously, these descriptions were only allowed on platforms where
plain 'char' is unsigned. On platforms where plain 'char' is signed,
they invoked undefined behavior or terminated the output early.
Revision 1.39: download - view: text, markup, annotated - select for diffs
Thu Feb 22 21:04:23 2024 UTC (9 months, 2 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +27 -20
lines
snprintb: always null-terminate output
Always null-terminate the output in the buffer, even in error cases. The
wording in the manual page has been promising this since 2008. For
snprintb_m, ensure that the output is terminated with two null
characters, to gracefully handle situations in which the caller does not
check whether snprintb returned an error.
If the buffer size is zero, allow the buffer to be a null pointer,
analogous to snprintf.
Fix an out-of-bounds memory read if the bitfmt ends with a '*' directive
(since today).
In the tests, merge the helper functions for snprintb, snprintb_m, as
they were similar enough.
Fix a few 'line_max exceeded' tests, ensuring that they output a '#'
marker, and that the 'complete' tests don't.
Revision 1.38: download - view: text, markup, annotated - select for diffs
Thu Feb 22 18:26:15 2024 UTC (9 months, 2 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +24 -14
lines
snprintb: error out on out-of-bounds bit shifts
Previously, these invoked undefined behavior, now they lead to an early
return. An example of out-of-bounds bit number is in SCZ_PCICTRL_BITS.
Bit fields that extend beyond the msb are still allowed.
Allow 'f' and 'F' to have fields that are 64 bits wide. This only makes
sense when the field starts at bit 0.
Remove the unused 'val_len', it was only needed before snprintb.c 1.20.
Revision 1.37: download - view: text, markup, annotated - select for diffs
Tue Feb 20 20:31:56 2024 UTC (9 months, 3 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +76 -114
lines
snprintb_m: limit length of generated strings
The manual page promises that the 'max' argument limits the length of
the generated strings, so don't generate any strings that are longer
than that limit. Mark incomplete strings with a trailing '#' to make
them easily recognizable.
Revision 1.36: download - view: text, markup, annotated - select for diffs
Mon Feb 19 23:30:56 2024 UTC (9 months, 3 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +5 -4
lines
snprintb: fix how named bit-fields are split into multiple lines
Revision 1.35: download - view: text, markup, annotated - select for diffs
Sat Feb 17 10:23:30 2024 UTC (9 months, 3 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +231 -183
lines
snprintb: convert macros to local functions
Let the compiler decide whether to inline the functions; allow stepping
through the code in a debugger.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Fri Feb 16 21:25:46 2024 UTC (9 months, 3 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +5 -10
lines
snprintb: do not modify bufsize when producing multiple lines
Revision 1.33: download - view: text, markup, annotated - select for diffs
Fri Feb 16 19:53:40 2024 UTC (9 months, 3 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +13 -24
lines
snprintb: eliminate two local variables, allow zero-size buffer
Like snprintf, the buffer size may be zero. Unlike snprintf, the buffer
must not be NULL.
Revision 1.32: download - view: text, markup, annotated - select for diffs
Fri Feb 16 19:31:25 2024 UTC (9 months, 3 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +17 -18
lines
snprintb: use size_t for buffer sizes and positions
Revision 1.31: download - view: text, markup, annotated - select for diffs
Fri Feb 16 19:20:38 2024 UTC (9 months, 3 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +6 -5
lines
snprintb: fix integer overflow when writing past a small buffer
Previously, snprintb returned -1 in this case, assuming that the
snprintf used in FMTSTR validates against an overly large buffer size.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Fri Feb 16 18:17:10 2024 UTC (9 months, 3 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +6 -6
lines
snprintb: use unsigned integers for parsing the bitfmt
Revision 1.29: download - view: text, markup, annotated - select for diffs
Fri Feb 16 18:09:15 2024 UTC (9 months, 3 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +5 -5
lines
snprintb: fix '=' and ':' for 8-bit values on platforms with signed char
Previously, '=' and ':' worked only on platforms where plain 'char' is
unsigned. On platforms where plain 'char' is signed, only 7-bit values
worked.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Fri Feb 16 18:03:16 2024 UTC (9 months, 3 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +25 -26
lines
snprintb: eliminate a few local variables
Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Feb 16 17:42:49 2024 UTC (9 months, 3 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +62 -66
lines
snprintb: rename local variables
The single-letter variables 't', 's', 'l' and 'c' were too hard to
decipher.
The variable 'f_len' was used for two independent purposes.
Use a narrow scope for some variables, to avoid having to keep track of
22 individual variables at the same time.
No binary change.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Fri Feb 16 01:57:50 2024 UTC (9 months, 3 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +66 -58
lines
snprintb: clean up
Remove redundant parentheses and casts.
Indent statement-like macros consistently, use separate lines for each
statement, add parentheses to macro definitions.
Remove CONSTCOND comments as lint doesn't need them anymore.
No binary change.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Thu Feb 15 23:48:51 2024 UTC (9 months, 3 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +11 -8
lines
snprintb: fix string termination (since today)
In the previous commit, I had accidentally only run the tests for
snprintb_m but not those for snprintb, thereby missing a newly
introduced bug that would not null-terminate the resulting strings.
Add more tests to cover similar situations in which the buffer is too
small to contain the complete output.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Thu Feb 15 22:48:58 2024 UTC (9 months, 3 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +17 -17
lines
snprintb: rename buflen to bufsize, following the wording in snprintf
Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu Feb 15 22:37:10 2024 UTC (9 months, 3 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +9 -9
lines
snprintb: fix out-of-bounds write
Revision 1.17.4.4: download - view: text, markup, annotated - select for diffs
Tue Apr 21 19:37:51 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.17.4.3: preferred, colored; branchpoint 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17.4.3: +3 -3
lines
Ooops, restore accidently removed files from merge mishap
Revision 1.17.4.3
Tue Apr 21 18:41:25 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
FILE REMOVED
Changes since revision 1.17.4.2: +3 -3
lines
Sync with HEAD
Revision 1.17.4.2: download - view: text, markup, annotated - select for diffs
Mon Apr 13 07:45:08 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.17.4.1: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.4.1: +9 -9
lines
Mostly merge changes from HEAD upto 20200411
Revision 1.22: download - view: text, markup, annotated - select for diffs
Fri Dec 6 19:36:22 2019 UTC (5 years ago) by christos
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
netbsd-10-base,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10,
is-mlppp-base,
is-mlppp,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh,
ad-namecache-base3,
ad-namecache-base,
ad-namecache
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +9 -9
lines
Formalize that the printf formats should be uintmax_t so we can
uniformly use 'j' in the user-provided formatting strings instead
of depending on _LP64 to use 'll' or 'l' (and the PRI macros). The
alternative is to parse the printf format manually to determine
which modifier to apply which would make this transparent to the
user (they could still always use '%u' or '%x'), but that's too
painful.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Jun 17 17:03:58 2019 UTC (5 years, 5 months ago) by christos
Branches: MAIN
CVS tags: phil-wifi-20191119,
netbsd-9-base,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +4 -4
lines
PR/54300: Andreas Gustafsson: Remove useless case. should fix
lib/libutil/t_snprintb test regression on sparc
Revision 1.17.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 21:41:08 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +28 -14
lines
Sync with HEAD
Revision 1.20: download - view: text, markup, annotated - select for diffs
Mon Apr 29 07:55:38 2019 UTC (5 years, 7 months ago) by kre
Branches: MAIN
CVS tags: phil-wifi-20190609
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +8 -5
lines
snprintb(3) says that, in the new(?) Torek format, all fields specs end with \0
The F spec is one of those, it should be terminated with \0 just like all
the others (irrelevant that it has no extra data to delimit).
Fix <sys/mman.h> to define the snprintb() format string correctly (include
the missing \0's). Fix the copy of that definition included into
snprintb(3) to match the updated mman.h version (ride the date bump
from the day before yesterday .. this is the same change, just corrected).
Undo the previous snprintb.c change ("off by one" fix) which was an
attempt to make the broken mman.h usage work (and did, but not the way
it should be done). Also, after using the new * format (instead of only
when something has already matched) skip the associated data so we don't
attempt to interpret it as more field specifiers. This func needs lots of TLC!
Fix the ATF tests for snprintb() to not assume that F format is really
exactly like f format, and has data after the field specifier. It doesn't.
Add several more tests (including testing the '*' field operator
recently added).
Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Apr 27 17:45:28 2019 UTC (5 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +26 -15
lines
Fix an off-by-one in the F modifier that ended up skipping the first : or =
entry, and add a * specifier for a "default case".
Revision 1.17.2.1: download - view: text, markup, annotated - select for diffs
Sat Jul 28 04:32:57 2018 UTC (6 years, 4 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17: +4 -4
lines
Sync with HEAD
Revision 1.18: download - view: text, markup, annotated - select for diffs
Thu Jul 26 00:33:26 2018 UTC (6 years, 4 months ago) by kamil
Branches: MAIN
CVS tags: pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +4 -4
lines
Avoid undefined behavior in snprintb.c
Do not change the signedness bit with a left shift operation.
Switch to unsigned integer to prevent this.
snprintb.c:178:17, left shift of 1 by 31 places cannot be represented in type 'int'
Detected with micro-UBSan in the user mode.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Sat Oct 14 18:41:41 2017 UTC (7 years, 1 month ago) by ryo
Branches: MAIN
CVS tags: tls-maxphys-20171202,
phil-wifi-base,
pgoyette-compat-base,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315
Branch point for: phil-wifi,
pgoyette-compat
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +6 -4
lines
doesn't work new format 'F' with a strings of length 1, or a string beginning with 'F'
Revision 1.7.6.1: download - view: text, markup, annotated - select for diffs
Tue Aug 19 23:45:15 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7: +43 -42
lines
Rebase to HEAD as of a few days ago.
Revision 1.14.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:47:06 2014 UTC (10 years, 4 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14: +4 -4
lines
Rebase.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Aug 2 11:19:01 2014 UTC (10 years, 4 months ago) by ryo
Branches: MAIN
CVS tags: tls-maxphys-base,
tls-earlyentropy-base,
prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
netbsd-8-base,
netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
netbsd-8,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0,
netbsd-7,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
localcount-20160914,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +4 -4
lines
fix lack of '>' pointed out in PR/48517
Revision 1.15: download - view: text, markup, annotated - select for diffs
Fri Jun 6 07:08:37 2014 UTC (10 years, 6 months ago) by shm
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +4 -4
lines
PR/48517 do not add extra '>' to string-converted value when nothing matches
Revision 1.5.6.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:26:30 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.5.6.1: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.6.1: +42 -41
lines
sync with head.
for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu Aug 8 22:18:20 2013 UTC (11 years, 4 months ago) by pgoyette
Branches: MAIN
CVS tags: yamt-pagecache-base9,
rmind-smpnet-nbase,
rmind-smpnet-base,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +9 -14
lines
Now that all of the macros are enclosed in "do { ... } while 0" we can
remove unneded parenthesization of their invocations.
OK mrg@
Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu Aug 8 16:43:13 2013 UTC (11 years, 4 months ago) by agc
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +4 -4
lines
Get the correct inttypes.h header, so this can build on !NetBSD.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu Aug 8 04:32:43 2013 UTC (11 years, 4 months ago) by mrg
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +31 -29
lines
apply some do { ... } while (0) so that macros aren't broken,
completing the previous change.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Aug 7 23:48:13 2013 UTC (11 years, 4 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +7 -5
lines
The PUT* things are macros. Use { ... } to make sure they expand correctly.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed Aug 7 22:37:28 2013 UTC (11 years, 4 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +5 -5
lines
Fix boundary condition in multi-line format. When the '=' following a
field name exactly filled a line, the back-up logic failed and really
messed up the formatting!
Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Aug 6 22:02:50 2013 UTC (11 years, 4 months ago) by apb
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +8 -6
lines
If HAVE_SNPRINTB_M is defined, then do not define the snprintb() and
snprintb_m() functions. This should allow this file to be compiled
from a tools build regardless of whether or not the host defines these
functions.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Jul 9 16:10:17 2013 UTC (11 years, 5 months ago) by uwe
Branches: MAIN
CVS tags: riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +4 -4
lines
Use "unsigned int" instead of "u_int" to make it easier to steal.
u_int is out of fashion anyway...
Revision 1.5.6.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:01:40 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +7 -8
lines
sync with head
Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Jan 23 03:22:41 2012 UTC (12 years, 10 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
netbsd-6-base,
netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
netbsd-6,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
khorben-n900,
agc-symver-base,
agc-symver
Branch point for: tls-maxphys
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +6 -7
lines
also handle the separator after the F field.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Jan 23 02:34:01 2012 UTC (12 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +4 -4
lines
In the new format F did not print a separator as required.
Revision 1.4.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:23:18 2009 UTC (15 years, 7 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4: +126 -37
lines
Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed May 13 02:50:31 2009 UTC (15 years, 7 months ago) by pgoyette
Branches: MAIN
CVS tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
yamt-nfs-mp-base9,
yamt-nfs-mp-base8,
yamt-nfs-mp-base7,
yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
yamt-nfs-mp-base4,
yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
rmind-uvmplock-base,
matt-premerge-20091211,
matt-mips64-premerge-20101231,
jymxensuspend-base,
jym-xensuspend-nbase,
jym-xensuspend-base,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Branch point for: yamt-pagecache
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +126 -37
lines
Implement snprintb_m(3) to provide multi-line bit/bit-field decode.
Discussed on tech-kern.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Jan 18 12:05:49 2009 UTC (15 years, 10 months ago) by lukem
Branches: MAIN
CVS tags: yamt-nfs-mp-base3
Branch point for: jym-xensuspend
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +6 -6
lines
fix -Wsign-compare issues
Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed Jan 14 21:33:22 2009 UTC (15 years, 11 months ago) by pooka
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +4 -4
lines
Include sys/param.h in the kernel to make the vax properly pick up
memset. Otherwise vax/macros.h doesn't get included and the usual
lossage ensues.
(I bet you saw that one coming)
Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Dec 17 16:02:27 2008 UTC (15 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +27 -25
lines
We don't need this for _STANDALONE, and it needs snprintf to work.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Dec 16 22:33:11 2008 UTC (15 years, 11 months ago) by christos
Branches: MAIN
share with kernel; replaces bitmask_snprintf which was very broken:
- subtracted one from len without checking if len was 0
- checked for a minimum buffer size
- arguments order was inconsistent with other printf like functions
- no way to tell if it overflowed
CVSweb <webmaster@jp.NetBSD.org>