printf.c (8013:2dfcde2e9998) | printf.c (8024:27ce7490bd3b) |
---|---|
1/* 2 * Copyright (c) 2003, 2004 3 * The Regents of The University of Michigan 4 * All Rights Reserved 5 * 6 * This code is part of the M5 simulator, developed by Nathan Binkert, 7 * Erik Hallnor, Steve Raasch, and Steve Reinhardt, with contributions 8 * from Ron Dreslinski, Dave Greene, Lisa Hsu, Ali Saidi, and Andrew --- 40 unchanged lines hidden (view full) --- 49 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 50 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 51 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 52 * SOFTWARE. 53 */ 54 55#include <sys/types.h> 56#include <stdarg.h> | 1/* 2 * Copyright (c) 2003, 2004 3 * The Regents of The University of Michigan 4 * All Rights Reserved 5 * 6 * This code is part of the M5 simulator, developed by Nathan Binkert, 7 * Erik Hallnor, Steve Raasch, and Steve Reinhardt, with contributions 8 * from Ron Dreslinski, Dave Greene, Lisa Hsu, Ali Saidi, and Andrew --- 40 unchanged lines hidden (view full) --- 49 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 50 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 51 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 52 * SOFTWARE. 53 */ 54 55#include <sys/types.h> 56#include <stdarg.h> |
57#include <stdint.h> 58#include "m5op.h" |
|
57 58/* The string s is terminated by a '\0' */ 59void 60PutString(const char *s) 61{ 62 while (*s) 63 PutChar(*s++); 64} --- 250 unchanged lines hidden (view full) --- 315 while (*f) { 316 if (*f == '%') 317 f = FormatItem(f + 1, &ap); 318 else 319 PutChar(*f++); 320 } 321 322 va_end(ap); /* clean up */ | 59 60/* The string s is terminated by a '\0' */ 61void 62PutString(const char *s) 63{ 64 while (*s) 65 PutChar(*s++); 66} --- 250 unchanged lines hidden (view full) --- 317 while (*f) { 318 if (*f == '%') 319 f = FormatItem(f + 1, &ap); 320 else 321 PutChar(*f++); 322 } 323 324 va_end(ap); /* clean up */ |
323 while(1); | 325 m5_panic(); |
324} | 326} |