From: Thomas Gummerer Date: Sun, 7 Apr 2019 18:47:51 +0000 (+0100) Subject: ls-files: use correct format string X-Git-Tag: v2.22.0-rc0~49^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/7cb7283adb817dff660d237fcba9cce9db594034?hp=7cb7283adb817dff660d237fcba9cce9db594034 ls-files: use correct format string struct stat_data and struct cache_time both use unsigned ints for all their members. However the format string for 'git ls-files --debug' currently uses %d for formatting these numbers. This means that we potentially print these values incorrectly if they are greater than INT_MAX. This has been the case since the --debug option was introduced in 'git ls-files' in 8497421715 ("ls-files: learn a debugging dump format", 2010-07-31). Signed-off-by: Thomas Gummerer Signed-off-by: Junio C Hamano ---