X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Finode.c;h=7242550eac03247a80ed2f637437e9bc58aa0715;hb=048e046524eef96a68f9c7b9cfee27919ec06a6c;hp=0111004ac23aaf749695ba02acc2829dba402c60;hpb=321750354891a0968ca0c3664417eae73b9414aa;p=wimlib diff --git a/src/inode.c b/src/inode.c index 0111004a..7242550e 100644 --- a/src/inode.c +++ b/src/inode.c @@ -467,11 +467,14 @@ int stream_not_found_error(const struct wim_inode *inode, const u8 *hash) { if (wimlib_print_errors) { - ERROR("\"%"TS"\": stream not found", inode_first_full_path(inode)); - tfprintf(wimlib_error_file, - T(" SHA-1 message digest of missing stream:\n ")); - print_hash(hash, wimlib_error_file); - tputc(T('\n'), wimlib_error_file); + tchar hashstr[SHA1_HASH_SIZE * 2 + 1]; + + sprint_hash(hash, hashstr); + + ERROR("\"%"TS"\": stream not found\n" + " SHA-1 message digest of missing stream:\n" + " %"TS"", + inode_first_full_path(inode), hashstr); } return WIMLIB_ERR_RESOURCE_NOT_FOUND; }