Browse Source

Slightly improve some debug messages

Vitalii Demianets 11 years ago
parent
commit
a2fa9d4e1e
2 changed files with 6 additions and 6 deletions
  1. 2 2
      driver-titan.c
  2. 4 4
      titan-asic.c

+ 2 - 2
driver-titan.c

@@ -285,10 +285,10 @@ static bool configure_one_die(struct knc_titan_info *knc, int asic, int die)
 			break;
 			break;
 		knc_titan_clean_flush(repr, knc->ctx, knccore->asicno, knccore->dieno, knccore->coreno);
 		knc_titan_clean_flush(repr, knc->ctx, knccore->asicno, knccore->dieno, knccore->coreno);
 		get_nonce_range(knccore->dieno, knccore->coreno, &setup_params.nonce_bottom, &setup_params.nonce_top);
 		get_nonce_range(knccore->dieno, knccore->coreno, &setup_params.nonce_bottom, &setup_params.nonce_top);
-		applog(LOG_DEBUG, "%s Setup core %d:%d:%d, nonces 0x%08X - 0x%08X", repr, knccore->asicno, knccore->dieno, knccore->coreno, setup_params.nonce_bottom, setup_params.nonce_top);
+		applog(LOG_DEBUG, "%s[%d:%d:%d]: Setup core, nonces 0x%08X - 0x%08X", repr, knccore->asicno, knccore->dieno, knccore->coreno, setup_params.nonce_bottom, setup_params.nonce_top);
 		knc_titan_setup_core_local(repr, knc->ctx, knccore->asicno, knccore->dieno, knccore->coreno, &setup_params);
 		knc_titan_setup_core_local(repr, knc->ctx, knccore->asicno, knccore->dieno, knccore->coreno, &setup_params);
 	}
 	}
-	applog(LOG_NOTICE, "%s [%d-%d] Die configured", repr, asic, die);
+	applog(LOG_NOTICE, "%s[%d-%d] Die configured", repr, asic, die);
 	die_p->need_flush = true;
 	die_p->need_flush = true;
 	timer_set_now(&(die_p->last_share));
 	timer_set_now(&(die_p->last_share));
 	die_p->broadcast_flushes = false;
 	die_p->broadcast_flushes = false;

+ 4 - 4
titan-asic.c

@@ -35,16 +35,16 @@ bool knc_titan_set_work(const char *repr, void * const ctx, int channel, int die
 	} else {
 	} else {
 		*work_accepted = false;
 		*work_accepted = false;
 		if (response[0] == 0x7f) {
 		if (response[0] == 0x7f) {
-			applog(LOG_DEBUG, "%s[%d:%d]: Core disabled", repr, channel, die);
+			applog(LOG_DEBUG, "%s[%d:%d:%d]: Core disabled", repr, channel, die, core);
 			return false;
 			return false;
 		}
 		}
 		if (status & KNC_ERR_MASK) {
 		if (status & KNC_ERR_MASK) {
-			applog(LOG_INFO, "%s[%d:%d]: Failed to set work state (%x)", repr, channel, die, status);
+			applog(LOG_INFO, "%s[%d:%d:%d]: Failed to set work state (%x)", repr, channel, die, core, status);
 			return false;
 			return false;
 		}
 		}
 		if (!(status & KNC_ERR_MASK)) {
 		if (!(status & KNC_ERR_MASK)) {
 			/* !KNC_ERRMASK */
 			/* !KNC_ERRMASK */
-			applog(LOG_DEBUG, "%s[%d:%d]: Core busy (%x)", repr, channel, die, status);
+			applog(LOG_DEBUG, "%s[%d:%d:%d]: Core busy (%x)", repr, channel, die, core, status);
 		}
 		}
 	}
 	}
 
 
@@ -133,7 +133,7 @@ bool knc_titan_get_report(const char *repr, void * const ctx, int channel, int d
 	request_length = knc_prepare_report(request, die, core);
 	request_length = knc_prepare_report(request, die, core);
 	status = knc_syncronous_transfer(ctx, channel, request_length, request, response_length, response);
 	status = knc_syncronous_transfer(ctx, channel, request_length, request, response_length, response);
 	if (status) {
 	if (status) {
-		applog(LOG_INFO, "%s[%d:%d]: get_report failed (%x)", repr, channel, die, status);
+		applog(LOG_INFO, "%s[%d:%d:%d]: get_report failed (%x)", repr, channel, die, core, status);
 		return false;
 		return false;
 	}
 	}