thr_printf.c (5e53a4f90f82c4345f277dd87cc9292f26e04a29) thr_printf.c (b9b20abf2b0f84dc311b761b27380daff2b393d7)
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2002 Jonathan Mini <mini@freebsd.org>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 81 unchanged lines hidden (view full) ---

90 pstr(fd, va_arg(ap, char *));
91 continue;
92 case 'l':
93 islong = 1;
94 goto next;
95 case 'p':
96 pstr(fd, "0x");
97 islong = 1;
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2002 Jonathan Mini <mini@freebsd.org>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 81 unchanged lines hidden (view full) ---

90 pstr(fd, va_arg(ap, char *));
91 continue;
92 case 'l':
93 islong = 1;
94 goto next;
95 case 'p':
96 pstr(fd, "0x");
97 islong = 1;
98 /* FALLTHROUGH */
98 case 'd':
99 case 'u':
100 case 'x':
101 if (c == 'x' && isalt)
102 pstr(fd, "0x");
103 r = ((c == 'u') || (c == 'd')) ? 10 : 16;
104 if (c == 'd') {
105 if (islong)

--- 47 unchanged lines hidden ---
99 case 'd':
100 case 'u':
101 case 'x':
102 if (c == 'x' && isalt)
103 pstr(fd, "0x");
104 r = ((c == 'u') || (c == 'd')) ? 10 : 16;
105 if (c == 'd') {
106 if (islong)

--- 47 unchanged lines hidden ---