Print out build date of software and note that this is the 68kmla version on the startup banner

This commit is contained in:
akuker
2020-08-09 14:15:47 -05:00
parent 794d2629bc
commit baeef717c4
2 changed files with 6 additions and 3 deletions

View File

@@ -78,8 +78,9 @@ void KillHandler(int sig)
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void Banner(int argc, char* argv[]) void Banner(int argc, char* argv[])
{ {
FPRT(stdout,"SCSI Target Emulator RaSCSI(*^..^*) "); FPRT(stdout,"SCSI Target Emulator RaSCSI(*^..^*)\n");
FPRT(stdout,"version %01d.%01d%01d(%s, %s)\n", FPRT(stdout," 68k MLA Edition\n");
FPRT(stdout,"Forked from GIMONS version %01d.%01d%01d(%s, %s)\n",
(int)((VERSION >> 8) & 0xf), (int)((VERSION >> 8) & 0xf),
(int)((VERSION >> 4) & 0xf), (int)((VERSION >> 4) & 0xf),
(int)((VERSION ) & 0xf), (int)((VERSION ) & 0xf),
@@ -88,6 +89,7 @@ void Banner(int argc, char* argv[])
FPRT(stdout,"Powered by XM6 TypeG Technology / "); FPRT(stdout,"Powered by XM6 TypeG Technology / ");
FPRT(stdout,"Copyright (C) 2016-2020 GIMONS\n"); FPRT(stdout,"Copyright (C) 2016-2020 GIMONS\n");
FPRT(stdout,"Connect type : %s\n", CONNECT_DESC); FPRT(stdout,"Connect type : %s\n", CONNECT_DESC);
FPRT(stdout,"Build on %s at %s\n", __DATE__, __TIME__);
if ((argc > 1 && strcmp(argv[1], "-h") == 0) || if ((argc > 1 && strcmp(argv[1], "-h") == 0) ||
(argc > 1 && strcmp(argv[1], "--help") == 0)){ (argc > 1 && strcmp(argv[1], "--help") == 0)){

View File

@@ -94,7 +94,8 @@ int main(int argc, char* argv[])
fprintf(stderr, " FILE := image file path\n"); fprintf(stderr, " FILE := image file path\n");
fprintf(stderr, " CMD is 'attach' or 'insert' and FILE parameter is required.\n"); fprintf(stderr, " CMD is 'attach' or 'insert' and FILE parameter is required.\n");
fprintf(stderr, "Usage: %s -l\n", argv[0]); fprintf(stderr, "Usage: %s -l\n", argv[0]);
fprintf(stderr, " Print device list.\n"); fprintf(stderr, " Print device list.\n\n");
fprintf(stderr,"Build on %s at %s\n", __DATE__, __TIME__);
exit(0); exit(0);
} }