printk.cc (8229:78bf55f23338) | printk.cc (9034:8b9f227b64d8) |
---|---|
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; --- 155 unchanged lines hidden (view full) --- 164 165 out << dec; 166 167 ++args; 168 } 169 break; 170 171 case 's': { | 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; --- 155 unchanged lines hidden (view full) --- 164 165 out << dec; 166 167 ++args; 168 } 169 break; 170 171 case 's': { |
172 const char *s = (const char *)args; | 172 const char *s = (char *)args; |
173 if (!s) 174 s = "<NULL>"; 175 176 if (width > 0) 177 out.width(width); 178 if (leftjustify) 179 out.setf(ios::left); 180 --- 79 unchanged lines hidden --- | 173 if (!s) 174 s = "<NULL>"; 175 176 if (width > 0) 177 out.width(width); 178 if (leftjustify) 179 out.setf(ios::left); 180 --- 79 unchanged lines hidden --- |