printk.cc (11793:ef606668d247) printk.cc (12392:e0dbdf30a2a5)
1/*
2 * Copyright (c) 2004-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

96 octal = true;
97 break;
98 case 'D':
99 case 'd':
100 sign = true;
101 break;
102 case 'P':
103 format = true;
1/*
2 * Copyright (c) 2004-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

96 octal = true;
97 break;
98 case 'D':
99 case 'd':
100 sign = true;
101 break;
102 case 'P':
103 format = true;
104 M5_FALLTHROUGH;
104 case 'p':
105 hexnum = true;
106 break;
107 }
108
109 switch (*p) {
110 case 'D':
111 case 'd':

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

253 size_t len = strcspn(p, "%\n\r\0");
254 out.write(p, len);
255 p += len;
256 }
257 }
258 }
259
260}
105 case 'p':
106 hexnum = true;
107 break;
108 }
109
110 switch (*p) {
111 case 'D':
112 case 'd':

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

254 size_t len = strcspn(p, "%\n\r\0");
255 out.write(p, len);
256 p += len;
257 }
258 }
259 }
260
261}
261