| @@ -1,13 +1,24 @@ | | | @@ -1,13 +1,24 @@ |
1 | $NetBSD: patch-ac,v 1.1 2002/01/21 11:34:57 wiz Exp $ | | 1 | $NetBSD: patch-ac,v 1.2 2009/07/24 18:29:24 drochner Exp $ |
2 | | | 2 | |
3 | --- support_functions.h.orig Sat Jul 29 08:41:38 2000 | | 3 | --- support_functions.h.orig 2000-07-29 08:41:38.000000000 +0200 |
4 | +++ support_functions.h | | 4 | +++ support_functions.h |
5 | @@ -680,7 +680,7 @@ | | 5 | @@ -490,8 +490,8 @@ print_sys_usage(void) |
| | | 6 | (void)fprintf(stderr, "Could not get system usage for myself."); |
| | | 7 | else { |
| | | 8 | printf("\n"); |
| | | 9 | - printf("%-20s%1ld.%02lds\n", "USER_TIME", process_usage.ru_utime.tv_sec, process_usage.ru_utime.tv_usec / 10000); |
| | | 10 | - printf("%-20s%1ld.%02lds\n", "SYS_TIME", process_usage.ru_stime.tv_sec, process_usage.ru_stime.tv_usec / 10000); |
| | | 11 | + printf("%-20s%1lld.%02ds\n", "USER_TIME", (long long)process_usage.ru_utime.tv_sec, process_usage.ru_utime.tv_usec / 10000); |
| | | 12 | + printf("%-20s%1lld.%02ds\n", "SYS_TIME", (long long)process_usage.ru_stime.tv_sec, process_usage.ru_stime.tv_usec / 10000); |
| | | 13 | } |
| | | 14 | } |
| | | 15 | |
| | | 16 | @@ -680,7 +680,7 @@ print_frame_info(mp3_i, file_info) |
6 | printf("%-20s%d\n", "BitRate", mp3_i->BIT_RATE); | | 17 | printf("%-20s%d\n", "BitRate", mp3_i->BIT_RATE); |
7 | printf("%-20s%d\n", "SampRate", mp3_i->SAMPLE_FREQ); | | 18 | printf("%-20s%d\n", "SampRate", mp3_i->SAMPLE_FREQ); |
8 | printf("%-20s%s\n", "BinString", mp3_i->BIN_STRING); | | 19 | printf("%-20s%s\n", "BinString", mp3_i->BIN_STRING); |
9 | - printf("%-20s%d\n", "BinLen", strlen(mp3_i->BIN_STRING)); | | 20 | - printf("%-20s%d\n", "BinLen", strlen(mp3_i->BIN_STRING)); |
10 | + printf("%-20s%llu\n", "BinLen", (unsigned long long)strlen(mp3_i->BIN_STRING)); | | 21 | + printf("%-20s%llu\n", "BinLen", (unsigned long long)strlen(mp3_i->BIN_STRING)); |
11 | printf("%-20s%u\n", "IntHeader", mp3_i->INT_HEADER); | | 22 | printf("%-20s%u\n", "IntHeader", mp3_i->INT_HEADER); |
12 | printf("%-20s0x%x\n", "CRC16Value", mp3_i->CRC16_VALUE); | | 23 | printf("%-20s0x%x\n", "CRC16Value", mp3_i->CRC16_VALUE); |
13 | printf("%-20s0x%x\n", "Correct_CRC16Value", mp3_i->CORRECT_CRC16_VALUE); | | 24 | printf("%-20s0x%x\n", "Correct_CRC16Value", mp3_i->CORRECT_CRC16_VALUE); |