Displaying 15 results from an estimated 15 matches for "printlog".
2009 Dec 19
0
[LLVMdev] [PATCH] Circular Buffered Debug Stream
...gt; + /// circular buffer.
A better description would be "which *can* save its data to a circular
buffer, or can pass it through directly to an underlying stream if
specified with a buffer of zero."
When it is buffering, what causes it to flush? Your current model
requires "printLog" which is not an obvious name for this, would it be
better to do it on destruction? How about using something like
flush_to_underlying_stream() or something like that?
> + /// DELETE_STREAM - Tell the destructor to delete the held
> stream.
> + ///
> + static const...
2009 Dec 18
2
[LLVMdev] [PATCH] Circular Buffered Debug Stream
...l DeleteStream;
+
+ /// BufferSize - The size of the buffer in bytes.
+ ///
+ size_t BufferSize;
+
+ /// BufferArray - The actual buffer storage.
+ ///
+ char *BufferArray;
+
+ /// Cur - Pointer to the current output point in BufferArray.
+ ///
+ char *Cur;
+
+ /// printLog - Dump the contents of the buffer to Stream.
+ ///
+ void printLog(void) {
+ TheStream->write(BufferArray, BufferSize);
+ Cur = BufferArray;
+ }
+
+ virtual void write_impl(const char *Ptr, size_t Size);
+
+ /// current_pos - Return the current position within the stream...
2009 Dec 18
2
[LLVMdev] [PATCH] Circular Buffered Debug Stream
...l DeleteStream;
+
+ /// BufferSize - The size of the buffer in bytes.
+ ///
+ size_t BufferSize;
+
+ /// BufferArray - The actual buffer storage.
+ ///
+ char *BufferArray;
+
+ /// Cur - Pointer to the current output point in BufferArray.
+ ///
+ char *Cur;
+
+ /// printLog - Dump the contents of the buffer to Stream.
+ ///
+ void printLog(void) {
+ TheStream->write(BufferArray, BufferSize);
+ Cur = BufferArray;
+ }
+
+ virtual void write_impl(const char *Ptr, size_t Size);
+
+ /// current_pos - Return the current position within the stream...
2009 Dec 18
0
[LLVMdev] [PATCH] Circular Buffered Debug Stream
...l DeleteStream;
+
+ /// BufferSize - The size of the buffer in bytes.
+ ///
+ size_t BufferSize;
+
+ /// BufferArray - The actual buffer storage.
+ ///
+ char *BufferArray;
+
+ /// Cur - Pointer to the current output point in BufferArray.
+ ///
+ char *Cur;
+
+ /// printLog - Dump the contents of the buffer to Stream.
+ ///
+ void printLog(void) {
+ TheStream->write(BufferArray, BufferSize);
+ Cur = BufferArray;
+ }
+
+ virtual void write_impl(const char *Ptr, size_t Size);
+
+ /// current_pos - Return the current position within the stream...
2009 Dec 17
2
[LLVMdev] [PATCH] Circular Buffered Debug Stream
...l DeleteStream;
+
+ /// BufferSize - The size of the buffer in bytes.
+ ///
+ unsigned BufferSize;
+ /// BufferArray - The actual buffer storage.
+ ///
+ char *BufferArray;
+
+ /// Cur - Pointer to the current output point in BufferArray.
+ ///
+ char *Cur;
+
+ /// printLog - Dump the contents of the buffer to Stream.
+ ///
+ void printLog(void) {
+ TheStream->write(BufferArray, BufferSize);
+ Cur = BufferArray;
+ }
+
+ virtual void write_impl(const char *Ptr, size_t Size);
+
+ /// current_pos - Return the current position within the stream...
2009 Dec 19
2
[LLVMdev] [PATCH] Circular Buffered Debug Stream
...; A better description would be "which *can* save its data to a circular
> buffer, or can pass it through directly to an underlying stream if
> specified with a buffer of zero."
Make sense.
> When it is buffering, what causes it to flush? Your current model
> requires "printLog" which is not an obvious name for this, would it be
> better to do it on destruction? How about using something like
> flush_to_underlying_stream() or something like that?
Currently, it uses a signal handler. It's important that one gets output
on a SIGTERM, SIGSGEV and other such...
2002 Aug 13
2
Win2k explorer.exe dies when dealing with printers
...e list = @ntadmin, root
########## Shared resources
[jarjarbinks]
path = /usr/local/samba/var/spool
printer name = jarjarbinks
browseable = yes
available = yes
guest ok = no
writable = no
printable = yes
# default devmode = yes
# For debug purposes:
print command = /bin/cat %s > /tmp/printlog-%p; rm %s
; print command = lpr -o raw -r -P %p %s
write list = root, @ntadmin
[amidala]
path = /usr/local/samba/var/spool
printer name = amidala
browseable = yes
available = yes
guest ok = no
writable = no
printable = yes
# default devmode = yes
# For debug purposes:
print command = /bi...
2000 Feb 01
2
Why Is Printing Such a Problem?
I have Samba 2.0.6.3 (or is it 6.5?) running on a SuSE 6.2 system. I
currently have three Windows 95/98 clients attached to my linux machine,
which is a firewall/gateway to the internet via cable modem.
When I was using Samba 1.-something, I was able to print to the printer on
the linux box from two of the three Windows 95 machines on the network.
Since I upgraded to 2.0.6, I haven't been
2009 Dec 18
0
[LLVMdev] [PATCH] Circular Buffered Debug Stream
On Friday 18 December 2009 13:53, David Greene wrote:
> > > + void releaseStream() {
> > > + // Delete the stream if needed. Otherwise, transfer the buffer
> > > + // settings from this raw_ostream back to the underlying stream.
> > > + if (!TheStream)
> > > + return;
> > > + if (DeleteStream)
> > > +
2009 Dec 16
0
[LLVMdev] [PATCH] Circular Buffered Debug Stream
On Wednesday 16 December 2009 13:19, Chris Lattner wrote:
> + int BufferSize;
> + std::vector<char> BufferArray;
> + bool DelayOutput;
> + std::vector<char>::iterator Cur;
>
> Please doxygenify these.
Ok.
> Instead of using a std::vector for BufferArray, please just new[] an array
> since it is fixed size.
Ok.
> Why is BufferSize needed with
2009 Dec 18
4
[LLVMdev] [PATCH] Circular Buffered Debug Stream
...d circular_raw_ostream::dumpLog(void) {
> > + if (BufferSize > 0) {
> > + // Write out the buffer
> > + const char *msg = "*** Log Output ***\n";
> > + int num = std::strlen(msg);
> > +
> > + TheStream->write(msg, num);
> > + printLog();
> > + }
> > +}
>
> Is this to debug the implementation of the stream? Should this go into the
> tree?
No, this is what gets dumped at program termination. Remember, this stream
buffers everything you send it, effectively dropping everything except the
last N characters,...
2001 Mar 20
0
redefinition of "print command" not working, usign defaults
Hi,
I have the following trouble with samba 2.0.5a, I have defined my
printers as follows:
in the global section:
printcap name = /etc/printcap
load printers = yes
printing = lprng
print command =/usr/bin/lpr -U%m -P%p -r %s;echo %m
%M>>/var/log/samba/printlog
lpq command = /usr/bin/lpq -U%m -P%p
lprm command = /usr/bin/lprm -U%m -P%p %j
lppause command = /usr/sbin/lpc -U%m hold %p %j
lpresume command = /usr/sbin/lpc -U%m release %p %j
queuepause command = /usr/sbin/lpc -U%m -P%p stop
queueresume command = /usr/s...
2009 Dec 16
2
[LLVMdev] [PATCH] Circular Buffered Debug Stream
On Dec 16, 2009, at 8:12 AM, David Greene wrote:
>>>
>>> What, specifically, do you want reviewed before I start checking in?
>>> I'll be happy to prepare a patch that shows just that.
>>
>> I want a patch that does one thing (e.g. implements dbgs(),
>
> Ok, let's start with that. Here's the patch to add the circular raw_ostream.
This
2003 May 21
1
Printer Permissions Problem
...user script = /etc/local/samba/add_user %u
# Printing configs
printer admin = @staff
printing = LPRNG
printcap name = /etc/local/samba/printcap
; testing purposes so we can debug drivers..
print command = echo "%s on %p" >> /tmp/printlog
lpq command = lpq -P%p
lpq cache time = 30
lprm command = lprm %j
min print space = 2000
load printers = yes
; add printer wizard doesn't seem to work either
show add printer wizard = no
addprinter command = /etc/local/samb...
2009 Dec 18
0
[LLVMdev] [PATCH] Circular Buffered Debug Stream
...his should use memcpy.
> +void circular_raw_ostream::dumpLog(void) {
> + if (BufferSize > 0) {
> + // Write out the buffer
> + const char *msg = "*** Log Output ***\n";
> + int num = std::strlen(msg);
> +
> + TheStream->write(msg, num);
> + printLog();
> + }
> +}
Is this to debug the implementation of the stream? Should this go into the tree?
-Chris