version 1.10, 2025/04/13 04:22:43
|
version 1.11, 2025/04/17 14:34:27
|
Line 24
|
Line 24
|
* along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
* along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
* |
* |
* $Log$ |
* $Log$ |
|
* Revision 1.11 2025/04/17 14:34:27 snw |
|
* Further logging improvements |
|
* |
* Revision 1.10 2025/04/13 04:22:43 snw |
* Revision 1.10 2025/04/13 04:22:43 snw |
* Fix snprintf calls |
* Fix snprintf calls |
* |
* |
Line 65
|
Line 68
|
#include "journal.h" |
#include "journal.h" |
#include "iftab.h" |
#include "iftab.h" |
#include "shmmgr.h" |
#include "shmmgr.h" |
|
#include "log.h" |
|
|
void (*gbl_u)(short, char *, char *); |
void (*gbl_u)(short, char *, char *); |
void (*gbl_s)(short, char *, char *); |
void (*gbl_s)(short, char *, char *); |
Line 89 void global_set_engine(char ns, char *en
|
Line 93 void global_set_engine(char ns, char *en
|
if (strcmp (engine, "BUILTIN") == 0) { |
if (strcmp (engine, "BUILTIN") == 0) { |
gbl_u = &global_bltin; |
gbl_u = &global_bltin; |
} |
} |
#if defined(GVH_BDB) |
|
else if (strcmp (engine, "BERKELEYDB") == 0) { |
|
gbl_u = &global_bdb; |
|
} |
|
#endif |
|
else { |
else { |
fprintf (stderr, "global_set_engine: invalid global handler '%s' or FreeM built without '%s' global handler support.\r\n", engine, engine); |
logprintf (FM_LOG_WARNING, "global_set_engine: invalid global handler '%s' or FreeM built without '%s' global handler support", engine, engine); |
fprintf (stderr, "global set_engine: defaulting to 'BUILTIN' global handler for namespace '%s'.\r\n", nsname); |
logprintf (FM_LOG_WARNING, "global_set_engine: defaulting to 'BUILTIN' global handler for namespace '%s'", nsname); |
gbl_u = &global_bltin; |
gbl_u = &global_bltin; |
} |
} |
|
|
Line 108 void global_set_engine(char ns, char *en
|
Line 107 void global_set_engine(char ns, char *en
|
if (strcmp (engine, "BUILTIN") == 0) { |
if (strcmp (engine, "BUILTIN") == 0) { |
gbl_s = &global_bltin; |
gbl_s = &global_bltin; |
} |
} |
#if defined(GVH_BDB) |
|
else if (strcmp (engine, "BERKELEYDB") == 0) { |
|
gbl_s = &global_bdb; |
|
} |
|
#endif |
|
else { |
else { |
fprintf (stderr, "global_set_engine: invalid global handler '%s' or FreeM built without '%s' global handler support.\r\n", engine, engine); |
logprintf (FM_LOG_WARNING, "global_set_engine: invalid global handler '%s' or FreeM built without '%s' global handler support", engine, engine); |
fprintf (stderr, "global set_engine: defaulting to 'BUILTIN' global handler for namespace 'SYSTEM'.\r\n"); |
logprintf (FM_LOG_WARNING, "global_set_engine: defaulting to 'BUILTIN' global handler for namespace 'SYSTEM'"); |
gbl_s = &global_bltin; |
gbl_s = &global_bltin; |
} |
} |
|
|