diff options
author | Jiri Pirko <jiri@nvidia.com> | 2023-08-18 13:19:27 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-08-19 20:24:38 +0200 |
commit | f65f305ae0089fd74174d24dd32241ffe53a8d46 (patch) | |
tree | 9ddb70926eda91482667ca62fc7148c53210dd24 /io_uring/statx.c | |
parent | stmmac: intel: Enable correction of MAC propagation delay (diff) | |
download | linux-f65f305ae0089fd74174d24dd32241ffe53a8d46.tar.xz linux-f65f305ae0089fd74174d24dd32241ffe53a8d46.zip |
tools: ynl-gen: use temporary file for rendering
Currently any error during render leads to output an empty file.
That is quite annoying when using tools/net/ynl/ynl-regen.sh
which git greps files with content of "YNL-GEN.." and therefore ignores
empty files. So once you fail to regen, you have to checkout the file.
Avoid that by rendering to a temporary file first, only at the end
copy the content to the actual destination.
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'io_uring/statx.c')
0 files changed, 0 insertions, 0 deletions