From: Bernard Blackham Date: Fri, 25 Jun 2004 02:11:36 +0000 (+0000) Subject: Pad out with zeros. X-Git-Tag: X~6 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=695e901d56e9e5b01d625eae9bf62bb1b913ea97;p=uccvend-snackrom.git Pad out with zeros. --- diff --git a/ROM2/crctest.c b/ROM2/crctest.c index bf48c89..fdfa471 100644 --- a/ROM2/crctest.c +++ b/ROM2/crctest.c @@ -36,6 +36,6 @@ int main(int argc, char** argv) { crc = docrc(((char*)&msgid), 1, 0, crc); crc = docrc(password, strlen(password), 0, crc); crc = docrc(message, strlen(message), 0, crc); - printf("CRC is 0x%x\n", crc); + printf("%04x\n", crc); return 0; }