Added thread id's to the UpnpPrintf debug messages.
git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@350 119443c7-1b9e-41f8-b6fc-b9c35fce742c
This commit is contained in:
parent
0fc29c3d99
commit
5e742f04e3
@ -2,6 +2,10 @@
|
|||||||
Version 1.6.6
|
Version 1.6.6
|
||||||
*******************************************************************************
|
*******************************************************************************
|
||||||
|
|
||||||
|
2008-04-24 Marcelo Jimenez <mroberto(at)users.sourceforge.net>
|
||||||
|
* Added thread id's to the UpnpPrintf debug messages. Thanks to
|
||||||
|
Charles Nepveu for the idea.
|
||||||
|
|
||||||
2008-04-24 Marcelo Jimenez <mroberto(at)users.sourceforge.net>
|
2008-04-24 Marcelo Jimenez <mroberto(at)users.sourceforge.net>
|
||||||
* SF Bug Tracker [ 1948586 ]
|
* SF Bug Tracker [ 1948586 ]
|
||||||
Uppercase U in in "xmlns:U" in Invoke Action causes seg. f.
|
Uppercase U in in "xmlns:U" in Invoke Action causes seg. f.
|
||||||
|
1
THANKS
1
THANKS
@ -12,6 +12,7 @@ exempt of errors.
|
|||||||
- Arno Willig
|
- Arno Willig
|
||||||
- Bob Ciora
|
- Bob Ciora
|
||||||
- Chaos
|
- Chaos
|
||||||
|
- Charles Nepveu (cnepveu)
|
||||||
- Chris Pickel
|
- Chris Pickel
|
||||||
- Craig Nelson
|
- Craig Nelson
|
||||||
- David Maass
|
- David Maass
|
||||||
|
@ -310,17 +310,30 @@ void UpnpDisplayFileAndLine(
|
|||||||
IN const char *DbgFileName,
|
IN const char *DbgFileName,
|
||||||
IN int DbgLineNo)
|
IN int DbgLineNo)
|
||||||
{
|
{
|
||||||
int starlength = 66;
|
#define NLINES 2
|
||||||
const char *lines[2];
|
#define MAX_LINE_SIZE 512
|
||||||
char FileAndLine[500];
|
#define NUMBER_OF_STARS 80
|
||||||
lines[0] = "DEBUG";
|
const char *lines[NLINES];
|
||||||
if (DbgFileName) {
|
char buf[NLINES][MAX_LINE_SIZE];
|
||||||
sprintf(FileAndLine,
|
int i;
|
||||||
"FILE: %s, LINE: %d",
|
|
||||||
DbgFileName, DbgLineNo);
|
/* Initialize the pointer array */
|
||||||
lines[1] = FileAndLine;
|
for (i = 0; i < NLINES; i++) {
|
||||||
|
lines[i] = buf[i];
|
||||||
}
|
}
|
||||||
UpnpDisplayBanner(fd, lines, 2, starlength);
|
|
||||||
|
/* Put the debug lines in the buffer */
|
||||||
|
sprintf(buf[0], "DEBUG - THREAD ID: 0x%lX",
|
||||||
|
(unsigned long int)ithread_self());
|
||||||
|
if (DbgFileName) {
|
||||||
|
sprintf(buf[1],
|
||||||
|
"FILE: %s, LINE: %d",
|
||||||
|
DbgFileName,
|
||||||
|
DbgLineNo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Show the lines centered */
|
||||||
|
UpnpDisplayBanner(fd, lines, NLINES, NUMBER_OF_STARS);
|
||||||
fflush(fd);
|
fflush(fd);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user