-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Medium
-
SITSW-6794
-
10.01.00
-
11.01.00
-
The MMCSD driver uses the snprintf calls here:
Following is the image size with the default code:
❯ /usr/bin/ls -l sbl_emmc_linux_stage1.release.hs_fs.tiimage -rw-r--r-- 1 p-shivhare p-shivhare 270967 Mar 17 13:16 sbl_emmc_linux_stage1.release.hs_fs.tiimage
If instead of the snprintf from libc, we use the snprintf_ from the DPL printf.c, the image size reduces by ~4KB:
❯ /usr/bin/ls -l sbl_emmc_linux_stage1.release.hs_fs.tiimage -rw-r--r-- 1 p-shivhare p-shivhare 266231 Mar 17 13:16 sbl_emmc_linux_stage1.release.hs_fs.tiimage