openbsd-ports/sysutils/ipmitool/patches/patch-lib_ipmi_hpmfwupg_c
2016-05-07 14:18:12 +00:00

26 lines
1.1 KiB
Plaintext

$OpenBSD: patch-lib_ipmi_hpmfwupg_c,v 1.2 2016/05/07 14:18:12 sthen Exp $
--- lib/ipmi_hpmfwupg.c.orig Fri May 6 15:48:54 2016
+++ lib/ipmi_hpmfwupg.c Sat May 7 14:34:35 2016
@@ -194,8 +194,8 @@ HpmDisplayUpgrade(int skip, unsigned int totalSent,
if (totalSent == displayFWLength) {
/* Display the time taken to complete the upgrade */
printf(
-"\n| |Upload Time: %02ld:%02ld | Image Size: %7d bytes |\n",
- timeElapsed / 60, timeElapsed % 60, totalSent);
+"\n| |Upload Time: %02lld:%02lld | Image Size: %7d bytes |\n",
+ (long long) timeElapsed / 60, (long long) timeElapsed % 60, totalSent);
old_percent = -1;
}
}
@@ -1285,8 +1285,8 @@ HpmFwupgActionUploadFirmware(struct HpmfwupgComponentB
imageOffset,blockLength);
}
if (displayFWLength == totalSent) {
- printf("\n Time Taken %02ld:%02ld",
- (end-start)/60, (end-start)%60);
+ printf("\n Time Taken %02lld:%02lld",
+ (long long)(end-start)/60, (long long)(end-start)%60);
printf("\n\n");
}
} else {