[PATCH 1/1] fs: fat: fix seconds in timestamp

Tom Rini trini at konsulko.com
Sat May 30 00:46:50 CEST 2026


On Sat, 16 May 2026 20:37:00 +0200, Heinrich Schuchardt wrote:

> The FAT time format stores seconds/2 in bits 4:0. The expression
> 'tm.tm_sec > 1' is a boolean comparison (yields 0 or 1) where a
> right-shift 'tm.tm_sec >> 1' was intended.  As a result every
> file timestamp written by U-Boot has its seconds field set to
> either 0 or 1, depending on whether tm_sec is greater than 1.
> 
> Also fix the indentation of the tm_hour line.
> 
> [...]

Applied to u-boot/next, thanks!

[1/1] fs: fat: fix seconds in timestamp
      commit: 7af4196d9e9beaae6a69586cd87bd861b7fc2cda
-- 
Tom




More information about the U-Boot mailing list