comparison tools/gfxconv.c @ 1696:cf0fddd4bf52

When writing a C64 bitmap output, inform the user about the output file size.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 05 Jun 2018 11:36:55 +0300
parents e568535e1a96
children a0986cfd6f9d
comparison
equal deleted inserted replaced
1695:ce3e56cfa9b9 1696:cf0fddd4bf52
1067 dmErrorMsg("Error encoding bitmap data: %s\n", dmErrorStr(res)); 1067 dmErrorMsg("Error encoding bitmap data: %s\n", dmErrorStr(res));
1068 goto error; 1068 goto error;
1069 } 1069 }
1070 1070
1071 // And output the file 1071 // And output the file
1072 dmMsg(1, "Writing output file '%s'\n", filename); 1072 dmMsg(1, "Writing output file '%s', %" DM_PRIu_SIZE_T " bytes.\n",
1073 filename, buf.len);
1074
1073 res = dmWriteDataFile(NULL, filename, buf.data, buf.len); 1075 res = dmWriteDataFile(NULL, filename, buf.data, buf.len);
1074 1076
1075 error: 1077 error:
1076 dmGrowBufFree(&buf); 1078 dmGrowBufFree(&buf);
1077 return res; 1079 return res;