Skip to content
Snippets Groups Projects

Ensured error handling is now consistent with the --binary

3 files
+ 47
6
Compare changes
  • Side-by-side
  • Inline

Files

  • 44026628
    - Ensured error handling is now consistent with the --binary option when
      model file size does not match original data size see 3321f1d8 (Add
      model file size mismatch check and update version to 0.14, 2025-01-16)
    - Enhanced cmp_tool integration tests to cover model size mismatch cases
+ 1
1
@@ -1315,7 +1315,7 @@ static __inline ssize_t str2uint8_arr(const char *str, uint8_t *data, uint32_t b
@@ -1315,7 +1315,7 @@ static __inline ssize_t str2uint8_arr(const char *str, uint8_t *data, uint32_t b
nptr++;
nptr++;
}
}
if (*nptr != '\0') {
if (*nptr != '\0') {
fprintf(stderr, "%s: %s: Warning: The file may contain more data than specified by the samples or cmp_size parameter.\n",
fprintf(stderr, "%s: %s: Warning: The file may contain more data than read from it.\n",
PROGRAM_NAME, file_name);
PROGRAM_NAME, file_name);
}
}
Loading