[PATCH v5 1/4] bsps/stm32f4 Include STM32F4 HAL

Duc Doan dtbpkmte at gmail.com
Tue Aug 2 06:12:32 UTC 2022


Hello Christian,

On Tue, 2022-08-02 at 07:26 +0200, Christian MAUDERER wrote:
> That page most likely ignores line endings. Try it with `file` or 
> `dos2unix -i`:
> 
> ====
> sh> git co master
> [...]
> sh> file bsps/arm/include/cmsis_gcc.h
> bsps/arm/include/cmsis_gcc.h: C source, ASCII text, with CRLF, LF
> line 
> terminators
> sh> dos2unix -i bsps/arm/include/cmsis_gcc.h
>      1374       1       0  no_bom    text   
> bsps/arm/include/cmsis_gcc.h
> sh> git co duc/master
> [...]
> sh> file bsps/arm/include/cmsis_gcc.h
> bsps/arm/include/cmsis_gcc.h: C source, ASCII text
> sh> dos2unix -i bsps/arm/include/cmsis_gcc.h
>         0    2085       0  no_bom    text   
> bsps/arm/include/cmsis_gcc.h
> sh>
> ====
> 
> The three numbers of dos2unix output is (in this order): Number of
> DOS 
> line endings, number of UNIX line endings, number of MAC line
> endings.
> 
> So line endings changed from CRLF to only LF. Either make that two
> steps 
> (first changing the old one to LF in one commit and then updating it
> in 
> another) or change the new file to use the CRLF format of the old
> one.
> 
> Best regards
> 
> Christian
> 
> 

Thank you, this knowledge is new to me. I will change them to LF.

Best,

Duc


More information about the devel mailing list