New verbose logging and -DSMALL

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



Hi,

could you make it easy to ifdef out the LogVerbose option
and the file/func/line parameters, to build a version for
a RAMDISK setup?

Something like this:

#ifdef SMALL
#define LOGARGS		/* nothing */
#define LOGPARAMS	/* nothing */
#else
#define LOGARGS		file, func, line,
#define LOGPARAMS	const char *file, const char *func, int line,
#endif

And then:

 void
-sshfatal(const char *file, const char *func, int line, int showfunc,
+sshfatal(LOGPARAMS int showfunc,
     LogLevel level, const char *fmt, ...)
 {
        va_list args;
 
        va_start(args, fmt);
-       ssh_log(file, func, line, showfunc, level, fmt, args);
+       ssh_log(LOGARGS showfunc, level, fmt, args);
        va_end(args);
        cleanup_exit(255);
 }

The rest (ifdeffing out LogVerbose and the handling in the
eventual consumers of these parameters) should be obvious.

If there’s interest, I can prototype a patch if necessary?

Thanks,
//mirabilos
-- 
<cnuke> den AGP stecker anfeilen, damit er in den slot aufm 440BX board passt…
oder netzteile, an die man auch den monitor angeschlossen hat und die dann für
ein elektrisch aufgeladenes gehäuse gesorgt haben […] für lacher gut auf jeder
LAN party │ <nvb> damals, als der pizzateig noch auf dem monior "gegangen" ist
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev




[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux