diff options
| author | Luben Tuikov <luben.tuikov@amd.com> | 2021-04-14 18:17:01 +0300 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2021-04-15 23:32:44 +0300 |
| commit | 546aa546b05aef582956f44ad917c0eee2cb8027 (patch) | |
| tree | cf0d75cfc8db14dab4bc92fe977735c0d5db1f3f /tools/testing/selftests/bpf/prog_tests/autoload.c | |
| parent | b960cb25b1e36a930a0d31097e932f313bdee9b0 (diff) | |
| download | linux-546aa546b05aef582956f44ad917c0eee2cb8027.tar.xz | |
drm/amdgpu: Add double-sscanf but invert
Add back the double-sscanf so that both decimal
and hexadecimal values could be read in, but this
time invert the scan so that hexadecimal format
with a leading 0x is tried first, and if that
fails, then try decimal format.
Also use a logical-AND instead of nesting double
if-conditional.
See commit "drm/amdgpu: Fix a bug for input with double sscanf"
Cc: Alexander Deucher <Alexander.Deucher@amd.com>
Cc: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
Reviewed-by: John Clements <john.clements@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions
