Displaying 20 results from an estimated 59 matches for "do_log".
Did you mean:
dm_log
2020 Jan 28
2
Global removal pass - potential for improvement?
...v at lists.llvm.org> wrote:
> > I was looking into how the global optimization pass fares against
> > things like what's reported in
> > https://bugs.llvm.org/show_bug.cgi?id=44676
I need to take a closer look but I would have expected BasicAA to be
able to determine that `do_log` and `R` cannot alias. In the -Os version
(lower right here https://gcc.godbolt.org/z/KLaeiH), the write to `R`
clobbers the read from `do_log` which prevents us from removing the
load/store pair. My reasoning would have been that we know the size of
`do_log` to be less than the size accessed via `...
2020 Jan 28
2
Global removal pass - potential for improvement?
On 01/28, Karl Rehm wrote:
> >
> > I need to take a closer look but I would have expected BasicAA to be
> > able to determine that `do_log` and `R` cannot alias. In the -Os version
> > (lower right here https://gcc.godbolt.org/z/KLaeiH), the write to `R`
> > clobbers the read from `do_log` which prevents us from removing the
> > load/store pair. My reasoning would have been that we know the size of
> > `do_log`...
2001 Jan 11
2
Is anyone else getting this build error?
...r/include/time.h:60: warning: `clock_t' previously declared here
gcc -o scp scp.o -L. -L/usr/local/ssl/lib -L/usr/local/ssl -lssh
-lopenbsd-compat -ldl -lnsl -lz -lutil -lpam -lcrypto
./libssh.a(log.o): In function `fatal':
/home/mo/project/openssh_cvs/log.c:51: undefined reference to `do_log'
./libssh.a(log.o): In function `error':
/home/mo/project/openssh_cvs/log.c:63: undefined reference to `do_log'
./libssh.a(log.o): In function `log':
/home/mo/project/openssh_cvs/log.c:74: undefined reference to `do_log'
./libssh.a(log.o): In function `verbose':
/home/mo/pro...
2020 Jan 28
2
Global removal pass - potential for improvement?
...oes not optimize this out?
On Tue, Jan 28, 2020 at 1:23 PM Doerfert, Johannes <jdoerfert at anl.gov<mailto:jdoerfert at anl.gov>> wrote:
On 01/28, Karl Rehm wrote:
> >
> > I need to take a closer look but I would have expected BasicAA to be
> > able to determine that `do_log` and `R` cannot alias. In the -Os version
> > (lower right here https://gcc.godbolt.org/z/KLaeiH), the write to `R`
> > clobbers the read from `do_log` which prevents us from removing the
> > load/store pair. My reasoning would have been that we know the size of
> > `do_log`...
2015 Oct 29
2
[Bug 2464] Adding timestamp to debug messages (log.c:do_log)
https://bugzilla.mindrot.org/show_bug.cgi?id=2464
--- Comment #3 from Darren Tucker <dtucker at zip.com.au> ---
Created attachment 2741
--> https://bugzilla.mindrot.org/attachment.cgi?id=2741&action=edit
Changes as suggested.
Diff updated with suggested changes (also, making the timestamp format
ISO8601 compliant).
That said, what's the use case for this? The timestamps are
2015 Oct 29
2
[Bug 2464] Adding timestamp to debug messages (log.c:do_log)
Darren Tucker <dtucker at zip.com.au> writes:
> On Thu, Oct 29, 2015 at 12:32 PM, Mark D. Baushke <mdb at juniper.net> wrote:
> > Diff updated with suggested changes (also, making the timestamp format
> > ISO8601 compliant).
> >
> > Hmmm... full IOS8601 compliance would include the timzeone so the format
>
> I don't have a copy of the ISO8601
2015 Sep 12
10
[Bug 2464] New: Adding timestamp to debug messages (log.c:do_log)
https://bugzilla.mindrot.org/show_bug.cgi?id=2464
Bug ID: 2464
Summary: Adding timestamp to debug messages (log.c:do_log)
Product: Portable OpenSSH
Version: 7.1p1
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5
Component: Miscellaneous
Assignee: unassigned-bugs at mindrot.org
Reporter: lzs...
2015 Sep 12
10
[Bug 2464] New: Adding timestamp to debug messages (log.c:do_log)
https://bugzilla.mindrot.org/show_bug.cgi?id=2464
Bug ID: 2464
Summary: Adding timestamp to debug messages (log.c:do_log)
Product: Portable OpenSSH
Version: 7.1p1
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5
Component: Miscellaneous
Assignee: unassigned-bugs at mindrot.org
Reporter: lzs...
2011 Jun 02
2
preauth privsep logging via monitor
...L;
+ log_handler_ctx = NULL;
+
log_on_stderr = on_stderr;
if (on_stderr)
return;
@@ -327,6 +332,23 @@ log_init(char *av0, LogLevel level, Sysl
#define MSGBUFSIZ 1024
void
+set_log_handler(log_handler_fn *handler, void *ctx)
+{
+ log_handler = handler;
+ log_handler_ctx = ctx;
+}
+
+void
+do_log2(LogLevel level, const char *fmt,...)
+{
+ va_list args;
+
+ va_start(args, fmt);
+ do_log(level, fmt, args);
+ va_end(args);
+}
+
+void
do_log(LogLevel level, const char *fmt, va_list args)
{
#if defined(HAVE_OPENLOG_R) && defined(SYSLOG_DATA_INIT)
@@ -337,6 +359,7 @@ do_log(LogLevel le...
2001 Jul 05
1
OpenSSH Logging Madness
...lement to the LogLevel enum, say, 'SYSLOG_LEVEL_NOTICE',
between 'SYSLOG_LEVEL_INFO' and 'SYSLOG_LEVEL_ERROR', in log.h
- add a new logging function to log.c called notice(), much like log(),
verbose() and friends, but logging to SYSLOG_LEVEL_NOTICE.
- modify log.c:do_log() to map SYSLOG_LEVEL_NOTICE to LOG_NOTICE.
- modify auth.c:/auth_log() to use notice() instead of log().
- make any other log()->notice() changes that seem appropriate.
Below is a patch that implements just these changes. The patch is
against OpenSSH 2.9p2 + simon at sxw.org.uk's GSS-A...
2020 Jan 28
3
Global removal pass - potential for improvement?
Hey everyone,
I was looking into how the global optimization pass fares against things
like what's reported in https://bugs.llvm.org/show_bug.cgi?id=44676
Looking at this, I think it would be pretty trivial to optimize that down
given that there are already threading assumptions made:
https://godbolt.org/z/u6ZqoB
Is this something I can look into? Another thing is that currently *all*
external
2016 Mar 28
2
Is it possible to extend log message?
...git a/log.c b/log.c
index ad12930..95df4a9 100644
--- a/log.c
+++ b/log.c
@@ -359,7 +359,7 @@ log_redirect_stderr_to(const char *logfile)
log_stderr_fd = fd;
}
-#define MSGBUFSIZ 1024
+#define MSGBUFSIZ 5192
void
set_log_handler(log_handler_fn *handler, void *ctx)
@@ -448,11 +448,11 @@ do_log(LogLevel level, const char *fmt, va_list args)
} else {
#if defined(HAVE_OPENLOG_R) && defined(SYSLOG_DATA_INIT)
openlog_r(argv0 ? argv0 : __progname, LOG_PID, log_facility, &sd
- syslog_r(pri, &sdata, "%.500s", fmtbuf);
+...
2012 Dec 05
1
[PATCH] Large log output does not print newline
Hi,
I think I found a minor bug in OpenSSH's log functionality: If a log
message which is larger than MSGBUFSIZE=1024 and logged to stderr, then the
newline (\r\n) is not printed. This is due to the fact that the newline is
added after the log message concatenated with "\r\n" is snprintf'd to
another buffer of the same size. If the source buffer (fmtbuf) would
already fill the
2015 Jul 06
3
[PATCH v2 1/1] paint visual host key with unicode box-drawing characters
...y: Christian Hesse <mail at eworm.de>
---
log.c | 2 +-
sshkey.c | 77 +++++++++++++++++++++++++++++++++++++++++++++++-----------------
2 files changed, 58 insertions(+), 21 deletions(-)
diff --git a/log.c b/log.c
index 32e1d2e..90c1232 100644
--- a/log.c
+++ b/log.c
@@ -444,7 +444,7 @@ do_log(LogLevel level, const char *fmt, va_list args)
tmp_handler(level, fmtbuf, log_handler_ctx);
log_handler = tmp_handler;
} else if (log_on_stderr) {
- snprintf(msgbuf, sizeof msgbuf, "%s\r\n", fmtbuf);
+ /* we want unicode multi byte characters, so do not use fmtbuf here */
(vo...
2004 Mar 23
2
A question on Compilation errors...
...to `strncasecmp'
./libssh.a(log.o): In function `log_facility_number':
/openssh-3.8p1/log.c(101): undefined reference to `strcasecmp'
./libssh.a(log.o): In function `log_level_number':
/openssh-3.8p1/log.c(113): undefined reference to `strcasecmp'
./libssh.a(log.o): In function `do_log':
/openssh-3.8p1/log.c(329): undefined reference to `openlog'
/openssh-3.8p1/log.c(330): undefined reference to `syslog'
/openssh-3.8p1/log.c(331): undefined reference to `closelog'
./libssh.a(cipher.o): In function `cipher_by_name':
/openssh-3.8p1/cipher.c(149): undefined refer...
2006 Apr 11
2
using log4r and rails
hey everyone. i know somebody else had started a thread on this subject,
but since no one seems to be answering that thread i thought i would
start one of my one.
i''m doing a project for a client and we need some seriously verbose
logging. it looks like log4r can do what i need, but i can''t for the
life of me figure out how to plug it into rails. everywhere talks about
how
2017 Jul 24
8
syslog from chrooted environment
I have a somewhat busy sftp server where the users are all chrooted into
their home directory. In order to log all the commands they enter, I
have to create a /dev/log entry and hard link in their home directory so
that syslog works for their commands
Match user *
ForceCommand internal-sftp -f local1 -l verbose
Everything works, but its a bit of a pain if someone restarts syslogd
and forgets
2005 Dec 19
3
tough activerecord problem
I have an application that is using active record outside of rails. the app
works fine w/o the activerecord code, but when I added activerecord to the
mix I started having trouble with constants not being recognized, e.g.:
[echo] 1) Error:
[echo] test_pipeline_cruncher(IntradayCruncher::TestPipelineCruncher):
[echo] NameError: uninitialized constant INFO
[echo]
2000 Jan 18
0
More NetBSD patches
...==============================
RCS file: /usr/local/cvs/openssh/log-client.c,v
retrieving revision 1.3
diff -u -r1.3 log-client.c
--- log-client.c 2000/01/17 16:53:09 1.3
+++ log-client.c 2000/01/18 15:21:54
@@ -45,12 +45,12 @@
}
}
-#define MSGBUFSIZE 1024
+#define SSH_MSGBUFSIZE 1024
void
do_log(LogLevel level, const char *fmt, va_list args)
{
- char msgbuf[MSGBUFSIZE];
+ char msgbuf[SSH_MSGBUFSIZE];
if (level > log_level)
return;
Index: log-server.c
===================================================================
RCS file: /usr/local/cvs/openssh/log-server.c,v
retrieving rev...
2007 Feb 12
0
[867] trunk/wxruby2/doc/textile/log.txtl: Fix methods section, organise instance and class methods
...ot;LogNull":logoverview.html
-
-h3(#Log_resume). Log#resume
-
- *resume*()
-
-Resumes logging previously suspended by a call to
-"Suspend":logsuspend.html. All messages logged in the meanwhile will be
-flushed soon.
-
</del><span class="cx"> h3(#Log_dolog). Log#do_log
</span><span class="cx">
</span><span class="cx"> *do_log*(%(arg-type)LogLevel% level, %(arg-type)Char% msg, %(arg-type)time_t% timestamp)
</span><span class="lines">@@ -269,17 +265,6 @@
</span><span class="cx"...