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