Actions
Bug #64
closedkern_ktr.c warning patch
Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Description
Hi,
convert unneccessary vprintf to printf
Files
Actions
Added by slynko almost 19 years ago. Updated about 16 years ago.
0%
Description
Hi,
convert unneccessary vprintf to printf
Files
kern_ktr.printf.diff (689 Bytes) kern_ktr.printf.diff | slynko, 01/18/2006 04:13 PM |
On 18.01.2006, at 17:09, Alexey Slynko wrote:
Hi,
convert unneccessary vprintf to printf
Index: /usr/src1/sys/kern/kern_ktr.c ===================================================================
RCS file: /mnt/share/dragonfly-cvs/src/sys/kern/kern_ktr.c,v
retrieving revision 1.12
diffu -r1.12 kern_ktr.c/usr/src1/sys/kern/kern_ktr.c 12 Dec 2005 08:15:02 -0000 1.12
--
+++ /usr/src1/sys/kern/kern_ktr.c 18 Jan 2006 14:25:20 -0000@ -438,6 +438,7
@
struct ktr_entry *entry;
int cpu;+ entry = NULL;
cpu = mycpu->gd_cpuid;
if (ktr_buf[cpu]) {
crit_enter();@ -471,7 +472,7
@
if (ktr_verbose > 1) {
printf("%s.%d\t", entry->ktr_file, entry->ktr_line);
}
- vprintf(info->kf_format, ptr);
+ printf(info->kf_format, ptr);
did you actually try this?
cheers
simon
I'm not seeing how this is supposed to work, and haven't heard back from the
originator for 2+ years.