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

Logged email message

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@250 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent f72acb6a
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
// CVS ID strings // CVS ID strings
extern const char *CVSid1, *CVSid2; extern const char *CVSid1, *CVSid2;
const char *CVSid6="$Id: smartd.c,v 1.59 2002/11/12 22:35:43 ballen4705 Exp $" const char *CVSid6="$Id: smartd.c,v 1.60 2002/11/12 22:39:21 ballen4705 Exp $"
CVSID1 CVSID2 CVSID3 CVSID4 CVSID7; CVSID1 CVSID2 CVSID3 CVSID4 CVSID7;
// global variable used for control of printing, passing arguments, etc. // global variable used for control of printing, passing arguments, etc.
...@@ -122,6 +122,8 @@ void printandmail(char *address, mailinfo *mail, int priority, char *fmt, ...){ ...@@ -122,6 +122,8 @@ void printandmail(char *address, mailinfo *mail, int priority, char *fmt, ...){
if (WEXITSTATUS(status)) if (WEXITSTATUS(status))
printout(LOG_CRIT,"Email warning message to %s failed (exit status %d)\n",address,status); printout(LOG_CRIT,"Email warning message to %s failed (exit status %d)\n",address,status);
else else
printout(LOG_INFO,"Email warning message sent to %s\n",address);
return; return;
} }
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
// CVS ID strings // CVS ID strings
extern const char *CVSid1, *CVSid2; extern const char *CVSid1, *CVSid2;
const char *CVSid6="$Id: smartd.cpp,v 1.59 2002/11/12 22:35:43 ballen4705 Exp $" const char *CVSid6="$Id: smartd.cpp,v 1.60 2002/11/12 22:39:21 ballen4705 Exp $"
CVSID1 CVSID2 CVSID3 CVSID4 CVSID7; CVSID1 CVSID2 CVSID3 CVSID4 CVSID7;
// global variable used for control of printing, passing arguments, etc. // global variable used for control of printing, passing arguments, etc.
...@@ -122,6 +122,8 @@ void printandmail(char *address, mailinfo *mail, int priority, char *fmt, ...){ ...@@ -122,6 +122,8 @@ void printandmail(char *address, mailinfo *mail, int priority, char *fmt, ...){
if (WEXITSTATUS(status)) if (WEXITSTATUS(status))
printout(LOG_CRIT,"Email warning message to %s failed (exit status %d)\n",address,status); printout(LOG_CRIT,"Email warning message to %s failed (exit status %d)\n",address,status);
else else
printout(LOG_INFO,"Email warning message sent to %s\n",address);
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment