diff options
author | wtchang%redhat.com <devnull@localhost> | 2005-03-09 22:34:20 +0000 |
---|---|---|
committer | wtchang%redhat.com <devnull@localhost> | 2005-03-09 22:34:20 +0000 |
commit | 1bac9ca9eea8e04d1b306a5eaeb777a7a60e864d (patch) | |
tree | 43d2c09596a034aaedabf87d113877d5f9c37d64 | |
parent | abe009c280a1a66650184858b2784866f1d3b541 (diff) | |
download | nspr-hg-1bac9ca9eea8e04d1b306a5eaeb777a7a60e864d.tar.gz |
Bugzilla Bug 255633: allow hyphen (-) and underscore (_) in log module
names. The patch is contributed by Ed Catmur <ed@catmur.co.uk>. r=wtc.
-rw-r--r-- | pr/src/io/prlog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pr/src/io/prlog.c b/pr/src/io/prlog.c index 67106453..fea940c6 100644 --- a/pr/src/io/prlog.c +++ b/pr/src/io/prlog.c @@ -219,7 +219,7 @@ void _PR_InitLog(void) PRInt32 bufSize = DEFAULT_BUF_SIZE; while (pos < evlen) { PRIntn level = 1, count = 0, delta = 0; - count = sscanf(&ev[pos], "%63[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789]%n:%d%n", + count = sscanf(&ev[pos], "%63[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_]%n:%d%n", module, &delta, &level, &delta); pos += delta; if (count == 0) break; @@ -328,7 +328,7 @@ static void _PR_SetLogModuleLevel( PRLogModuleInfo *lm ) while (pos < evlen) { PRIntn level = 1, count = 0, delta = 0; - count = sscanf(&ev[pos], "%63[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789]%n:%d%n", + count = sscanf(&ev[pos], "%63[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_]%n:%d%n", module, &delta, &level, &delta); pos += delta; if (count == 0) break; |