• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqtwindows誰得cocoapythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

Virtual machine Management Terminal User Interface


Commit MetaInfo

Révision9c06c816a0ed5a14977a6119676a2821fc999c0d (tree)
l'heure2022-07-23 14:55:33
AuteurKoine Yuusuke(koinec) <koinec@user...>
CommiterKoine Yuusuke(koinec)

Message de Log

Delete TuiErrInfo_PrintErrInfo() function.

Change Summary

Modification

--- a/src/errinfo.c
+++ b/src/errinfo.c
@@ -189,13 +189,6 @@ int
189189 break;
190190 }
191191
192- /*
193- if( ERRINFO_FLAG_TUIWIN & gb_flag ) {
194- if( gb_errlevel >= b_level )
195- { TuiErrInfo_PrintErrInfo( p_err ); }
196- }
197- */
198-
199192 if( ERRINFO_FLAG_SYSLOG & gb_flag ) {
200193 if( NULL != pstr_param ) {
201194 syslog( i_prio,
--- a/src/tuierrinfo.c
+++ b/src/tuierrinfo.c
@@ -33,51 +33,10 @@
3333 /* ===========================================================================*/
3434 VMTUI_TUIERRINFO_EXTERN
3535 int
36- TuiErrInfo_PrintErrInfo(
37- ErrInfo *p_err )
38-{
39- struct tm t_tm;
40-
41- if( NULL == p_err ) {
42- return -0x01;
43- }
44-
45- if( NULL == gp_errinfo_subwin ) {
46- return -0x02;
47- }
48-
49- localtime_r( &(p_err->t_errtime), &t_tm );
50-
51- if( '\0' != p_err->str_param[0] ) {
52- wprintw( gp_errinfo_subwin,
53- " %04d/%02d/%02d %02d:%02d:%02d %s: %s errno=%2d <H:%2d,G:%2d,Rq:%2d> (%d : %s) [%s:%3d]\n",
54- (t_tm.tm_year + 1900), t_tm.tm_mon, t_tm.tm_mday, t_tm.tm_hour, t_tm.tm_min, t_tm.tm_sec,
55- p_err->str_level, p_err->str_errormsg, p_err->i_errno,
56- p_err->i_hvisor, p_err->i_guest, p_err->i_request,
57- p_err->i_param, p_err->str_param,
58- p_err->str_srcfile, p_err->i_srcline);
59- }
60- else {
61- wprintw( gp_errinfo_subwin,
62- " %04d/%02d/%02d %02d:%02d:%02d %s: %s errno=%2d <H:%2d,G:%2d,Rq:%2d> (%d) [%s:%3d]\n",
63- (t_tm.tm_year + 1900), t_tm.tm_mon, t_tm.tm_mday, t_tm.tm_hour, t_tm.tm_min, t_tm.tm_sec,
64- p_err->str_level, p_err->str_errormsg, p_err->i_errno,
65- p_err->i_hvisor, p_err->i_guest, p_err->i_request,
66- p_err->i_param,
67- p_err->str_srcfile, p_err->i_srcline);
68- }
69-
70- return 0x00;
71-}
72-
73-/* ===========================================================================*/
74-VMTUI_TUIERRINFO_EXTERN
75-int
7636 TuiErrInfo_Update(
7737 void )
7838 {
7939 int i_errs = 0;
80- int i_remains;
8140 ErrInfo t_err;
8241 struct tm t_tm;
8342
--- a/src/tuierrinfo.h
+++ b/src/tuierrinfo.h
@@ -35,7 +35,6 @@
3535 #else
3636 #define VMTUI_TUIERRINFO_EXTERN extern
3737 #endif
38-VMTUI_TUIERRINFO_EXTERN int TuiErrInfo_PrintErrInfo( ErrInfo *p_err );
3938 VMTUI_TUIERRINFO_EXTERN int TuiErrInfo_Update( void );
4039 VMTUI_TUIERRINFO_EXTERN int TuiErrInfo_Draw( void );
4140 VMTUI_TUIERRINFO_EXTERN int TuiErrInfo_Init( void );