Skip to content

Commit 886f691

Browse files
fundakolnvlsianpu
authored andcommitted
samples: Use proper CR-LF end line chars
This fix helps to test UART output from board. Signed-off-by: Lukasz Fundakowski <[email protected]>
1 parent c9bf37b commit 886f691

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

samples/bootloader/src/main.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ static void validate_and_boot(const struct fw_info *fw_info, counter_t slot)
7373
return;
7474
}
7575

76-
printk("Attempting to boot from address 0x%x.\n\r",
76+
printk("Attempting to boot from address 0x%x.\r\n",
7777
fw_info->address);
7878

7979
if (!bl_validate_firmware_local(fw_info->address,
8080
fw_info)) {
81-
printk("Failed to validate, permanently invalidating!\n\r");
81+
printk("Failed to validate, permanently invalidating!\r\n");
8282
fw_info_invalidate(fw_info);
8383
return;
8484
}
@@ -90,8 +90,8 @@ static void validate_and_boot(const struct fw_info *fw_info, counter_t slot)
9090
int err = get_monotonic_version(&stored_version);
9191

9292
if (err) {
93-
printk("Failed to read the monotonic counter!\n\r");
94-
printk("We assume this is due to the firmware version not being enabled.\n\r");
93+
printk("Failed to read the monotonic counter!\r\n");
94+
printk("We assume this is due to the firmware version not being enabled.\r\n");
9595

9696
/*
9797
* Errors in reading the firmware version are assumed to be
@@ -133,11 +133,11 @@ int main(void)
133133
int err = fprotect_area(PM_B0_ADDRESS, PM_B0_SIZE);
134134

135135
if (err) {
136-
printk("Failed to protect B0 flash, cancel startup.\n\r");
136+
printk("Failed to protect B0 flash, cancel startup.\r\n");
137137
return 0;
138138
}
139139
#else
140-
printk("Fprotect disabled. No protection applied.\n\r");
140+
printk("Fprotect disabled. No protection applied.\r\n");
141141
#endif
142142

143143
uint32_t s0_addr = s0_address_read();
@@ -153,6 +153,6 @@ int main(void)
153153
validate_and_boot(s0_info, BOOT_SLOT_0);
154154
}
155155

156-
printk("No bootable image found. Aborting boot.\n\r");
156+
printk("No bootable image found. Aborting boot.\r\n");
157157
return 0;
158158
}

0 commit comments

Comments
 (0)