Skip to content

Commit

Permalink
Fix the debug message for too large json data during write.
Browse files Browse the repository at this point in the history
  • Loading branch information
oniko authored and mbroz committed Mar 7, 2025
1 parent fcf2666 commit c1b7ad8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/luks2/luks2_disk_metadata.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ int LUKS2_disk_hdr_write(struct crypt_device *cd, struct luks2_hdr *hdr, struct
json_area_write_len = json_data_len = strlen(json_text);

if (json_data_len > (json_area_len - 1)) {
log_dbg(cd, "JSON is too large (%zu > %zu).", json_data_len, json_area_len);
log_dbg(cd, "JSON is too large (%zu > %zu).", json_data_len, json_area_len - 1);
return -EINVAL;
}

Expand Down

0 comments on commit c1b7ad8

Please sign in to comment.