Skip to content

Commit

Permalink
TA: Improve python snippet for UUID generation.
Browse files Browse the repository at this point in the history
This avoids creating a previously redundant empty line and
a space which was escaped, rather than the newline.
The previous behavior caused syntax errors when copied into
a new TA.

Fixes: #206
Signed-off-by: Till Eifert <t.eifert@uni-luebeck.de>
Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
  • Loading branch information
37eex9 authored and jbech-linaro committed Sep 15, 2023
1 parent 07f018b commit d0cf24f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion building/trusted_applications.rst
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ Example of a property header file
print('\n' + '#define TA_UUID\n\t{ ' + \
'0x{:08x}'.format(u.time_low) + ', ' + \
'0x{:04x}'.format(u.time_mid) + ', ' + \
'0x{:04x}'.format(u.time_hi_version) + ', \\ \n\n\t\t{ ' + \
'0x{:04x}'.format(u.time_hi_version) + ', \x5c\n\t\t{ ' + \
'0x{:02x}'.format(u.clock_seq_hi_variant) + ', ' + \
'0x{:02x}'.format(u.clock_seq_low) + ', ' + \
'0x' + ''.join(n) + '} }')"
Expand Down

0 comments on commit d0cf24f

Please sign in to comment.