zinger: shrink text strings

Save a hundred bytes by making the debug messages less verbose ...

Signed-off-by: Vincent Palatin <vpalatin@chromium.org>

BRANCH=samus
BUG=none
TEST=make buildall

Change-Id: I796bc2badc8f5756c1e44fceb5143e9e123d26b5
Reviewed-on: https://chromium-review.googlesource.com/240581
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Trybot-Ready: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
This commit is contained in:
Vincent Palatin
2015-01-12 12:41:27 -08:00
committed by ChromeOS Commit Bot
parent 4003052d66
commit f52ed342b9
2 changed files with 8 additions and 9 deletions

View File

@@ -64,7 +64,7 @@ static int check_rw_valid(void *rw_hash)
good = rsa_verify(&pkey, (void *)rw_sig, rw_hash, rsa_workbuf);
if (!good) {
debug_printf("RSA verify FAILED\n");
debug_printf("RSA FAILED\n");
return 0;
}
@@ -78,7 +78,7 @@ int main(void)
void *rw_hash;
hardware_init();
debug_printf("Power supply started ... %s\n",
debug_printf("%s started\n",
is_ro_mode() ? "RO" : "RW");
/* the RO partition protection is not enabled : do it */
@@ -100,7 +100,7 @@ int main(void)
/* background loop for PD events */
pd_task();
debug_printf("background loop exited !\n");
debug_printf("EXIT!\n");
/* we should never reach that point */
system_reset(0);
return 0;

View File

@@ -322,7 +322,7 @@ int pd_board_checks(void)
/* If output is disabled for long enough, then hibernate */
if (!pd_is_connected(0) && hib_to_ready) {
if (get_time().val >= hib_to.val) {
debug_printf("hibernate\n");
debug_printf("hib\n");
__enter_hibernate(0, 0);
}
} else {
@@ -339,7 +339,7 @@ int pd_board_checks(void)
vbus_amp = adc_read_channel(ADC_CH_A_SENSE);
if (fault == FAULT_FAST_OCP) {
debug_printf("Fast OverCurrent\n");
debug_printf("Fast OCP\n");
fault = FAULT_OCP;
/* reset over-current after 1 second */
fault_deadline.val = get_time().val + OCP_TIMEOUT;
@@ -354,7 +354,7 @@ int pd_board_checks(void)
break;
/* trigger the slow OCP iff all 4 samples are above the max */
if (count == 3) {
debug_printf("OverCurrent : %d mA\n",
debug_printf("OCP %d mA\n",
vbus_amp * VDDA_MV / CURR_GAIN * 1000
/ R_SENSE / ADC_SCALE);
fault = FAULT_OCP;
@@ -384,7 +384,7 @@ int pd_board_checks(void)
if ((output_is_enabled() && (vbus_volt > voltages[ovp_idx].ovp)) ||
(fault && (vbus_volt > voltages[ovp_idx].ovp_rec))) {
if (!fault)
debug_printf("OverVoltage : %d mV\n",
debug_printf("OVP %d mV\n",
ADC_TO_VOLT_MV(vbus_volt));
fault = FAULT_OVP;
/* no timeout */
@@ -402,7 +402,7 @@ int pd_board_checks(void)
discharge_disable();
/* enable over-current monitoring */
adc_enable_watchdog(ADC_CH_A_SENSE, MAX_CURRENT_FAST, 0);
debug_printf("Discharge failure : %d mV\n",
debug_printf("Disch FAIL %d mV\n",
ADC_TO_VOLT_MV(vbus_volt));
fault = FAULT_DISCHARGE;
/* reset it after 1 second */
@@ -560,7 +560,6 @@ int pd_custom_vdm(int port, int cnt, uint32_t *payload,
}
}
debug_printf("%T] DONE\n");
/* respond (positively) to the request */
payload[0] |= VDO_SRC_RESPONDER;