Skip to content
Snippets Groups Projects
Commit 2f31b94d authored by ballen4705's avatar ballen4705
Browse files

Modified version printing option to print CVS id of all files used in build.

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@77 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent d160ff57
No related branches found
No related tags found
No related merge requests found
// $Id: atacmds.c,v 1.15 2002/10/22 08:43:22 ballen4705 Exp $
/*
* atacmds.c
*
......@@ -31,6 +30,8 @@
#include <errno.h>
#include "atacmds.h"
const char *CVSid1="$Id: atacmds.c,v 1.16 2002/10/22 09:44:55 ballen4705 Exp $\n" CVSID1 ;
// These Drive Identity tables are taken from hdparm 5.2, and are also
// given in the ATA/ATAPI specs for the IDENTIFY DEVICE command. Note
// that SMART was first added into the ATA/ATAPI-3 Standard with
......
// $Id: atacmds.cpp,v 1.15 2002/10/22 08:43:22 ballen4705 Exp $
/*
* atacmds.c
*
......@@ -31,6 +30,8 @@
#include <errno.h>
#include "atacmds.h"
const char *CVSid1="$Id: atacmds.cpp,v 1.16 2002/10/22 09:44:55 ballen4705 Exp $\n" CVSID1 ;
// These Drive Identity tables are taken from hdparm 5.2, and are also
// given in the ATA/ATAPI specs for the IDENTIFY DEVICE command. Note
// that SMART was first added into the ATA/ATAPI-3 Standard with
......
// $Id: atacmds.h,v 1.14 2002/10/21 16:45:22 ballen4705 Exp $
/*
* atacmds.h
*
......@@ -26,6 +25,10 @@
#ifndef _ATACMDS_H_
#define _ATACMDS_H_
#ifndef CVSID1
#define CVSID1 "$Id: atacmds.h,v 1.15 2002/10/22 09:44:55 ballen4705 Exp $\n"
#endif
// These are the major and minor versions for smartd and smartctl
#define PROJECTHOME "http://smartmontools.sourceforge.net/"
#define RELEASE_MAJOR 5
......
// $Id: ataprint.c,v 1.14 2002/10/21 16:00:48 ballen4705 Exp $
/*
* ataprint.c
*
......@@ -29,6 +28,8 @@
#include "smartctl.h"
#include "extern.h"
const char *CVSid4="$Id: ataprint.c,v 1.15 2002/10/22 09:44:55 ballen4705 Exp $\n" CVSID2 CVSID3 CVSID6 ;
// Function for printing ASCII byte-swapped strings, skipping white
// space. This is needed on little-endian architectures, eg Intel,
// Alpha. If someone wants to run this on SPARC they'll need to test
......
// $Id: ataprint.cpp,v 1.14 2002/10/21 16:00:48 ballen4705 Exp $
/*
* ataprint.c
*
......@@ -29,6 +28,8 @@
#include "smartctl.h"
#include "extern.h"
const char *CVSid4="$Id: ataprint.cpp,v 1.15 2002/10/22 09:44:55 ballen4705 Exp $\n" CVSID2 CVSID3 CVSID6 ;
// Function for printing ASCII byte-swapped strings, skipping white
// space. This is needed on little-endian architectures, eg Intel,
// Alpha. If someone wants to run this on SPARC they'll need to test
......
// $Id: ataprint.h,v 1.6 2002/10/20 19:22:02 ballen4705 Exp $
/*
* ataprint.c
* ataprint.h
*
* Home page of code is: http://smartmontools.sourceforge.net
*
......@@ -27,6 +25,10 @@
#ifndef _SMART_PRINT_H_
#define _SMART_PRINT_H_
#ifndef CVSID2
#define CVSID2 "$Id: ataprint.h,v 1.7 2002/10/22 09:44:55 ballen4705 Exp $\n"
#endif
#include <stdio.h>
#include <stdlib.h>
#include "atacmds.h"
......
// $Id: extern.h,v 1.6 2002/10/20 19:22:02 ballen4705 Exp $
/*
* extern.h
*
......@@ -26,6 +25,11 @@
#ifndef _EXTERN_H_
#define _EXTERN_H_
#ifndef CVSID3
#define CVSID3 "$Id: extern.h,v 1.7 2002/10/22 09:44:55 ballen4705 Exp $\n"
#endif
extern unsigned char driveinfo;
extern unsigned char checksmart;
extern unsigned char smartvendorattrib;
......
// $Id: scsicmds.c,v 1.8 2002/10/22 08:43:22 ballen4705 Exp $
/*
* scsicmds.c
*
......@@ -35,7 +33,7 @@
#include <scsi/scsi.h>
#include "scsicmds.h"
const char *CVSid2="$Id: scsicmds.c,v 1.9 2002/10/22 09:44:55 ballen4705 Exp $\n" CVSID4 ;
UINT8 logsense (int device, UINT8 pagenum, UINT8 *pBuf)
......
// $Id: scsicmds.cpp,v 1.8 2002/10/22 08:43:22 ballen4705 Exp $
/*
* scsicmds.c
*
......@@ -35,7 +33,7 @@
#include <scsi/scsi.h>
#include "scsicmds.h"
const char *CVSid2="$Id: scsicmds.cpp,v 1.9 2002/10/22 09:44:55 ballen4705 Exp $\n" CVSID4 ;
UINT8 logsense (int device, UINT8 pagenum, UINT8 *pBuf)
......
// $Id: scsicmds.h,v 1.6 2002/10/22 08:43:22 ballen4705 Exp $
/*
* scsicmds.h
*
......@@ -27,6 +26,9 @@
#ifndef SCSICMDS_H_
#define SCSICMDS_H_
#ifndef CVSID4
#define CVSID4 "$Id: scsicmds.h,v 1.7 2002/10/22 09:44:55 ballen4705 Exp $\n"
#endif
#ifndef LOG_SENSE
#define LOG_SENSE 0x4d
......
// $Id: scsiprint.c,v 1.6 2002/10/15 14:24:27 ballen4705 Exp $
/*
* scsiprint.c
*
......@@ -37,6 +36,8 @@
#define GBUF_SIZE 65535
const char* CVSid5="$Id: scsiprint.c,v 1.7 2002/10/22 09:44:55 ballen4705 Exp $\n" CVSID3 CVSID4 CVSID5 CVSID6 ;
UINT8 gBuf[GBUF_SIZE];
UINT8 gSmartPage = 0;
......
// $Id: scsiprint.cpp,v 1.6 2002/10/15 14:24:27 ballen4705 Exp $
/*
* scsiprint.c
*
......@@ -37,6 +36,8 @@
#define GBUF_SIZE 65535
const char* CVSid5="$Id: scsiprint.cpp,v 1.7 2002/10/22 09:44:55 ballen4705 Exp $\n" CVSID3 CVSID4 CVSID5 CVSID6 ;
UINT8 gBuf[GBUF_SIZE];
UINT8 gSmartPage = 0;
......
// $Id: scsiprint.h,v 1.5 2002/10/15 14:24:27 ballen4705 Exp $
/*
* scsiprint.h
*
......@@ -28,6 +27,9 @@
#ifndef SCSI_PRINT_H_
#define SCSI_PRINT_H_
#ifndef CVSID5
#define CVSID5 "$Id: scsiprint.h,v 1.6 2002/10/22 09:44:55 ballen4705 Exp $\n"
#endif
void scsiPrintMain (int fd);
......
// $Id: smartctl.c,v 1.11 2002/10/21 08:49:23 ballen4705 Exp $
/*
* smartctl.c
*
......@@ -37,6 +36,9 @@
#include "scsicmds.h"
#include "scsiprint.h"
extern const char *CVSid1, *CVSid2, *CVSid4, *CVSid5;
const char* CVSid6="$Id: smartctl.c,v 1.12 2002/10/22 09:44:55 ballen4705 Exp $\n" CVSID1 CVSID2 CVSID4 CVSID5 CVSID6 ;
unsigned char driveinfo = FALSE;
unsigned char checksmart = FALSE;
unsigned char smartvendorattrib = FALSE;
......@@ -229,7 +231,7 @@ int main (int argc, char **argv){
printf("is free software, and you are welcome to redistribute it\n");
printf("under the terms of the GNU General Public License Version 2.\n");
printf("See http://www.gnu.org for further details.\n\n");
printf("CVS version ID %s\n","$Id: smartctl.c,v 1.11 2002/10/21 08:49:23 ballen4705 Exp $");
printf("CVS version IDs of files used to build this code are:\n%s%s%s%s%s",CVSid1,CVSid2,CVSid4,CVSid5,CVSid6);
if (argc==2)
exit(0);
}
......
// $Id: smartctl.cpp,v 1.11 2002/10/21 08:49:23 ballen4705 Exp $
/*
* smartctl.c
*
......@@ -37,6 +36,9 @@
#include "scsicmds.h"
#include "scsiprint.h"
extern const char *CVSid1, *CVSid2, *CVSid4, *CVSid5;
const char* CVSid6="$Id: smartctl.cpp,v 1.12 2002/10/22 09:44:55 ballen4705 Exp $\n" CVSID1 CVSID2 CVSID4 CVSID5 CVSID6 ;
unsigned char driveinfo = FALSE;
unsigned char checksmart = FALSE;
unsigned char smartvendorattrib = FALSE;
......@@ -229,7 +231,7 @@ int main (int argc, char **argv){
printf("is free software, and you are welcome to redistribute it\n");
printf("under the terms of the GNU General Public License Version 2.\n");
printf("See http://www.gnu.org for further details.\n\n");
printf("CVS version ID %s\n","$Id: smartctl.cpp,v 1.11 2002/10/21 08:49:23 ballen4705 Exp $");
printf("CVS version IDs of files used to build this code are:\n%s%s%s%s%s",CVSid1,CVSid2,CVSid4,CVSid5,CVSid6);
if (argc==2)
exit(0);
}
......
// $Id: smartctl.h,v 1.6 2002/10/15 14:24:27 ballen4705 Exp $
/*
* smartctl.h
*
......@@ -26,6 +25,10 @@
#ifndef __SMARTCTL_H_
#define __SMARTCTL_H_
#ifndef CVSID6
#define CVSID6 "$Id: smartctl.h,v 1.7 2002/10/22 09:44:55 ballen4705 Exp $\n"
#endif
/* Defines for command line options */
#define DRIVEINFO 'i'
#define CHECKSMART 'c'
......
// $Id: smartd.c,v 1.10 2002/10/20 19:22:02 ballen4705 Exp $
/*
* smartd.c
*
......@@ -38,6 +37,8 @@
#include "scsicmds.h"
#include "smartd.h"
extern const char *CVSid1, *CVSid2;
const char *CVSid3="$Id: smartd.c,v 1.11 2002/10/22 09:44:55 ballen4705 Exp $\n" CVSID1 CVSID4 CVSID7 ;
int daemon_init(void){
pid_t pid;
......@@ -277,8 +278,7 @@ char copyleftstring[]=
"smartd comes with ABSOLUTELY NO WARRANTY. This\n"
"is free software, and you are welcome to redistribute it\n"
"under the terms of the GNU General Public License Version 2.\n"
"See http://www.gnu.org for further details.\n\n"
"CVS Version ID $Id: smartd.c,v 1.10 2002/10/20 19:22:02 ballen4705 Exp $\n";
"See http://www.gnu.org for further details.\n\n";
const char opts[] = { DEBUGMODE, EMAILNOTIFICATION, PRINTCOPYLEFT,'\0' };
......@@ -321,6 +321,7 @@ int main (int argc, char **argv){
printout(LOG_INFO,"smartd version %d.%d-%d Copyright (C) Bruce Allen 2002\n",
RELEASE_MAJOR,RELEASE_MINOR,SMARTMONTOOLS_VERSION);
printout(LOG_INFO,copyleftstring);
printout(LOG_INFO,"CVS version IDs of files used to build this code are:\n%s%s%s",CVSid1,CVSid2,CVSid3);
exit(0);
}
......
// $Id: smartd.cpp,v 1.10 2002/10/20 19:22:02 ballen4705 Exp $
/*
* smartd.c
*
......@@ -38,6 +37,8 @@
#include "scsicmds.h"
#include "smartd.h"
extern const char *CVSid1, *CVSid2;
const char *CVSid3="$Id: smartd.cpp,v 1.11 2002/10/22 09:44:55 ballen4705 Exp $\n" CVSID1 CVSID4 CVSID7 ;
int daemon_init(void){
pid_t pid;
......@@ -277,8 +278,7 @@ char copyleftstring[]=
"smartd comes with ABSOLUTELY NO WARRANTY. This\n"
"is free software, and you are welcome to redistribute it\n"
"under the terms of the GNU General Public License Version 2.\n"
"See http://www.gnu.org for further details.\n\n"
"CVS Version ID $Id: smartd.cpp,v 1.10 2002/10/20 19:22:02 ballen4705 Exp $\n";
"See http://www.gnu.org for further details.\n\n";
const char opts[] = { DEBUGMODE, EMAILNOTIFICATION, PRINTCOPYLEFT,'\0' };
......@@ -321,6 +321,7 @@ int main (int argc, char **argv){
printout(LOG_INFO,"smartd version %d.%d-%d Copyright (C) Bruce Allen 2002\n",
RELEASE_MAJOR,RELEASE_MINOR,SMARTMONTOOLS_VERSION);
printout(LOG_INFO,copyleftstring);
printout(LOG_INFO,"CVS version IDs of files used to build this code are:\n%s%s%s",CVSid1,CVSid2,CVSid3);
exit(0);
}
......
// $Id: smartd.h,v 1.5 2002/10/15 14:24:27 ballen4705 Exp $
/*
* smartd.h
*
......@@ -23,6 +22,10 @@
*
*/
#ifndef CVSID7
#define CVSID7 "$Id: smartd.h,v 1.6 2002/10/22 09:44:55 ballen4705 Exp $\n"
#endif
/* Defines for command line options */
#define DEBUGMODE 'X'
#define EMAILNOTIFICATION 'e'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment