@@ -435,7 +435,7 @@ void *datum_gateway_template_thread(void *args) {
435435
436436 if (t ) {
437437 datum_blocktemplates_error = NULL ;
438- DLOG_DEBUG ("height: %d / value: %" PRIu64 ,t -> height , t -> coinbasevalue );
438+ DLOG_DEBUG ("height: %lu / value: %" PRIu64 , ( unsigned long ) t -> height , t -> coinbasevalue );
439439 DLOG_DEBUG ("--- prevhash: %s" , t -> previousblockhash );
440440 DLOG_DEBUG ("--- txn_count: %u / sigops: %u / weight: %u / size: %u" , t -> txn_count , t -> txn_total_sigops , t -> txn_total_weight , t -> txn_total_size );
441441
@@ -445,7 +445,7 @@ void *datum_gateway_template_thread(void *args) {
445445 update_stratum_job (t ,true,JOB_STATE_EMPTY_PLUS );
446446 strcpy (p1 , t -> previousblockhash );
447447 was_notified = false;
448- DLOG_INFO ("NEW NETWORK BLOCK: %s (%d )" ,t -> previousblockhash ,t -> height );
448+ DLOG_INFO ("NEW NETWORK BLOCK: %s (%lu )" , t -> previousblockhash , ( unsigned long ) t -> height );
449449
450450 // sleep for a milisecond
451451 // this will let other threads churn for a moment. we wont get all the empty jobs blasted out in a milisecond anyway
@@ -484,7 +484,7 @@ void *datum_gateway_template_thread(void *args) {
484484 if (!was_notified ) {
485485 DLOG_DEBUG ("Multi notified for block we knew details about. (%s)" , new_notify_blockhash );
486486 } else {
487- DLOG_DEBUG ("Notified, however new = %s, t->previousblockhash = %s, t->height = %d , new_notify_height = %d" , new_notify_blockhash , t -> previousblockhash , t -> height , new_notify_height );
487+ DLOG_DEBUG ("Notified, however new = %s, t->previousblockhash = %s, t->height = %lu , new_notify_height = %d" , new_notify_blockhash , t -> previousblockhash , ( unsigned long ) t -> height , new_notify_height );
488488
489489 // Sometimes we call GBT before we get the signal from a blocknotify. It's a bit of a race condition.
490490 // Instead of freaking out, we'll just ignore things when we get a signal that results in the same block if it was
0 commit comments