Boot: Use overwrite-only mode for image upgrade

- The swapping image upgrade is a two-step process (by default). First
it performs a "test" upgrade and boots the new image. Then the image can
mark itself as "OK" at runtime by setting the image_ok flag in the
flash. When this happens, the swap is made "permanent" and mcuboot will
then still choose to run it during the next boot. Currently TF-M does
not set the image_ok flag, therefore the bootloader will always perform
a "revert" (swap the images back) during the next boot. For this reason,
this patch sets the overwrite-only mode as the default image upgrade
strategy. However, this strategy does not provide the opportunity to
restore the previous image if the device crashes with the new firmware.
- Update secure boot documentation.
- Fix format specifier error in overwrite-only code.
- Fix the bootloader output message by reorganizing the
preprocessor directives in case of non-swapping firmware upgrade.

Change-Id: Ida1c7c7fc198e393e79d178269826cbfa052395d
Signed-off-by: David Vincze <david.vincze@arm.com>
diff --git a/CommonConfig.cmake b/CommonConfig.cmake
index 9d35638..318e7f0 100644
--- a/CommonConfig.cmake
+++ b/CommonConfig.cmake
@@ -25,7 +25,7 @@
 endif()
 if (BL2)
 	if (NOT DEFINED MCUBOOT_UPGRADE_STRATEGY)
-		set (MCUBOOT_UPGRADE_STRATEGY "SWAP" CACHE STRING "Configure BL2 which upgrade strategy to use")
+		set (MCUBOOT_UPGRADE_STRATEGY "OVERWRITE_ONLY" CACHE STRING "Configure BL2 which upgrade strategy to use")
 		set_property(CACHE MCUBOOT_UPGRADE_STRATEGY PROPERTY STRINGS "OVERWRITE_ONLY;SWAP;NO_SWAP;RAM_LOADING")
 	endif()
 endif()