Use f-string instead of concatenation

Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
Gabor Mezei 2024-09-26 13:02:01 +02:00
parent 224152eec0
commit c9f01cf8b5
No known key found for this signature in database
GPG Key ID: 6310BD29B0BFF98C

View File

@ -183,8 +183,8 @@ If what is False, announce that the job has failed.'''
header += '#if '
if value:
header += '!'
header += 'defined(' + option + ')\n'
header += '#error "' + option + '"\n'
header += f'defined({option})\n'
header += f'#error "{option}"\n'
header += '#endif\n'
include_path = ['include', 'tf-psa-crypto/include',
'tf-psa-crypto/drivers/builtin/include']