Index: branches/eam_branches/ipp-20230313/psLib/src/db/psDB.c
===================================================================
--- branches/eam_branches/ipp-20230313/psLib/src/db/psDB.c	(revision 42506)
+++ branches/eam_branches/ipp-20230313/psLib/src/db/psDB.c	(revision 42637)
@@ -1040,5 +1040,8 @@
     fieldCount = mysql_num_fields(result);
 
-    psTrace("psLib.db", PS_LOG_INFO, "query returned %lu rows with %d fields",             rowCount, fieldCount);
+    // annoyingly, in some versions of mysql the value my_ulonglong is actually unsigned long long and in others
+    // it is actually unsigned long.  rather than try to set a print type which depends on the build, we just
+    // cast here to the unsigned long since it is rare that we would need such a large rowCount
+    psTrace("psLib.db", PS_LOG_INFO, "query returned %lu rows with %d fields", (unsigned long) rowCount, fieldCount);
 
     while ((row = mysql_fetch_row(result))) {
