[Asterisk-code-review] loader.c: Use portable printf conversion specifier for int64. (asterisk[18])

Sean Bright asteriskteam at digium.com
Tue May 17 09:28:13 CDT 2022


Sean Bright has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/18551 )


Change subject: loader.c: Use portable printf conversion specifier for int64.
......................................................................

loader.c: Use portable printf conversion specifier for int64.

ASTERISK-30060 #close

Change-Id: I88d47a1488be2f39017b8d562f993f081844fcb8
---
M main/loader.c
1 file changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/51/18551/1

diff --git a/main/loader.c b/main/loader.c
index aafcd3b..4c6c2a8 100644
--- a/main/loader.c
+++ b/main/loader.c
@@ -2517,9 +2517,9 @@
 	usElapsed = ast_tvdiff_us(end_time, start_time);
 
 #ifdef AST_XML_DOCS
-	ast_debug(1, "Loader time with AST_XML_DOCS: %ld.%06ld\n", usElapsed / 1000000, usElapsed % 1000000);
+	ast_debug(1, "Loader time with AST_XML_DOCS: %" PRId64 ".%06" PRId64 "\n", usElapsed / 1000000, usElapsed % 1000000);
 #else
-	ast_debug(1, "Loader time without AST_XML_DOCS: %ld.%06ld\n", usElapsed / 1000000, usElapsed % 1000000);
+	ast_debug(1, "Loader time without AST_XML_DOCS: %" PRId64 ".%06" PRId64 "\n", usElapsed / 1000000, usElapsed % 1000000);
 #endif
 
 	return res;

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/18551
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 18
Gerrit-Change-Id: I88d47a1488be2f39017b8d562f993f081844fcb8
Gerrit-Change-Number: 18551
Gerrit-PatchSet: 1
Gerrit-Owner: Sean Bright <sean at seanbright.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20220517/ca1354a8/attachment.html>


More information about the asterisk-code-review mailing list