Introduced severity ERRFILE
This commit is contained in:
parent
c48244abfc
commit
1e74d7a04e
@ -1 +1 @@
|
|||||||
#define Cdrskin_timestamP "2008.02.21.200956"
|
#define Cdrskin_timestamP "2008.02.21.201238"
|
||||||
|
@ -268,6 +268,8 @@ int libdax_msgs__text_to_sev(char *severity_name, int *severity,
|
|||||||
*severity= LIBDAX_MSGS_SEV_UPDATE;
|
*severity= LIBDAX_MSGS_SEV_UPDATE;
|
||||||
else if(strncmp(severity_name,"DEBUG",5)==0)
|
else if(strncmp(severity_name,"DEBUG",5)==0)
|
||||||
*severity= LIBDAX_MSGS_SEV_DEBUG;
|
*severity= LIBDAX_MSGS_SEV_DEBUG;
|
||||||
|
else if(strncmp(severity_name,"ERRFILE",8)==0)
|
||||||
|
*severity= LIBDAX_MSGS_SEV_ERRFILE;
|
||||||
else if(strncmp(severity_name,"ALL",3)==0)
|
else if(strncmp(severity_name,"ALL",3)==0)
|
||||||
*severity= LIBDAX_MSGS_SEV_ALL;
|
*severity= LIBDAX_MSGS_SEV_ALL;
|
||||||
else {
|
else {
|
||||||
@ -282,7 +284,7 @@ int libdax_msgs__sev_to_text(int severity, char **severity_name,
|
|||||||
int flag)
|
int flag)
|
||||||
{
|
{
|
||||||
if(flag&1) {
|
if(flag&1) {
|
||||||
*severity_name= "NEVER\nABORT\nFATAL\nFAILURE\nMISHAP\nSORRY\nWARNING\nHINT\nNOTE\nUPDATE\nDEBUG\nALL";
|
*severity_name= "NEVER\nABORT\nFATAL\nFAILURE\nMISHAP\nSORRY\nWARNING\nHINT\nNOTE\nUPDATE\nDEBUG\nERRFILE\nALL";
|
||||||
return(1);
|
return(1);
|
||||||
}
|
}
|
||||||
*severity_name= "";
|
*severity_name= "";
|
||||||
@ -308,6 +310,8 @@ int libdax_msgs__sev_to_text(int severity, char **severity_name,
|
|||||||
*severity_name= "UPDATE";
|
*severity_name= "UPDATE";
|
||||||
else if(severity>=LIBDAX_MSGS_SEV_DEBUG)
|
else if(severity>=LIBDAX_MSGS_SEV_DEBUG)
|
||||||
*severity_name= "DEBUG";
|
*severity_name= "DEBUG";
|
||||||
|
else if(severity>=LIBDAX_MSGS_SEV_ERRFILE)
|
||||||
|
*severity_name= "ERRFILE";
|
||||||
else if(severity>=LIBDAX_MSGS_SEV_ALL)
|
else if(severity>=LIBDAX_MSGS_SEV_ALL)
|
||||||
*severity_name= "ALL";
|
*severity_name= "ALL";
|
||||||
else {
|
else {
|
||||||
|
@ -120,6 +120,19 @@ struct libdax_msgs_item;
|
|||||||
*/
|
*/
|
||||||
#define LIBDAX_MSGS_SEV_ALL 0x00000000
|
#define LIBDAX_MSGS_SEV_ALL 0x00000000
|
||||||
|
|
||||||
|
|
||||||
|
/** Messages of this severity shall transport plain disk file paths
|
||||||
|
whenever an event of severity SORRY or above is related with an
|
||||||
|
individual disk file.
|
||||||
|
No message text shall be added to the file path. The ERRFILE message
|
||||||
|
shall be issued before the human readable message which carries the
|
||||||
|
true event severity. That message shall contain the file path so it
|
||||||
|
can be found by strstr(message, path)!=NULL.
|
||||||
|
The error code shall be the same as with the human readable message.
|
||||||
|
*/
|
||||||
|
#define LIBDAX_MSGS_SEV_ERRFILE 0x08000000
|
||||||
|
|
||||||
|
|
||||||
/** Debugging messages not to be visible to normal users by default
|
/** Debugging messages not to be visible to normal users by default
|
||||||
*/
|
*/
|
||||||
#define LIBDAX_MSGS_SEV_DEBUG 0x10000000
|
#define LIBDAX_MSGS_SEV_DEBUG 0x10000000
|
||||||
@ -149,7 +162,7 @@ struct libdax_msgs_item;
|
|||||||
like ISO image generation. A precondition for such a severity ease is
|
like ISO image generation. A precondition for such a severity ease is
|
||||||
that the action can be continued after the incident.
|
that the action can be continued after the incident.
|
||||||
See below MISHAP for what xorriso would need instead of this kind of SORRY
|
See below MISHAP for what xorriso would need instead of this kind of SORRY
|
||||||
an generates for itself in case of libisofs image generation.
|
and generates for itself in case of libisofs image generation.
|
||||||
|
|
||||||
E.g.: A pattern yields no result.
|
E.g.: A pattern yields no result.
|
||||||
A speed setting cannot be made.
|
A speed setting cannot be made.
|
||||||
|
Loading…
Reference in New Issue
Block a user