diff options
author | imp <imp@FreeBSD.org> | 2005-04-19 21:12:57 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2005-04-19 21:12:57 +0000 |
commit | 5b5f397dfcdf87818e71e7c1ea5aa0dcc5d903ea (patch) | |
tree | ef917ff49a44deecfa9fcdb7d2c0c86d4114bb04 | |
parent | e16c3e24aa86aeb4b9ada1912aad07d5d65aac3d (diff) | |
download | FreeBSD-src-5b5f397dfcdf87818e71e7c1ea5aa0dcc5d903ea.zip FreeBSD-src-5b5f397dfcdf87818e71e7c1ea5aa0dcc5d903ea.tar.gz |
Minimal changes to get this to compile with -DDEBUG defined as well
as hack a couple used before set warnings for LINT happiness.
-rw-r--r-- | sys/dev/hwpmc/hwpmc_mod.c | 4 | ||||
-rw-r--r-- | sys/hwpmc/hwpmc_mod.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/hwpmc/hwpmc_mod.c b/sys/dev/hwpmc/hwpmc_mod.c index 89b2954..1ff8ea5 100644 --- a/sys/dev/hwpmc/hwpmc_mod.c +++ b/sys/dev/hwpmc/hwpmc_mod.c @@ -312,6 +312,7 @@ pmc_debugflags_parse(char *newstr, char *fence) level = 0xF; /* max verbosity */ p = newstr; + e = newstr + strlen(p); for (; p < fence && (c = *p);) { @@ -1841,7 +1842,7 @@ pmc_release_pmc_descriptor(struct pmc *pm) /* * First, we take the PMC off hardware. */ - + cpu = 0; if (PMC_IS_SYSTEM_MODE(pm->pm_mode)) { /* @@ -2978,6 +2979,7 @@ pmc_syscall_handler(struct thread *td, void *syscall_args) if ((error = copyin(arg, &prw, sizeof(prw))) != 0) break; + ri = 0; PMCDBG(PMC,OPS,1, "rw id=%d flags=0x%x", prw.pm_pmcid, prw.pm_flags); diff --git a/sys/hwpmc/hwpmc_mod.c b/sys/hwpmc/hwpmc_mod.c index 89b2954..1ff8ea5 100644 --- a/sys/hwpmc/hwpmc_mod.c +++ b/sys/hwpmc/hwpmc_mod.c @@ -312,6 +312,7 @@ pmc_debugflags_parse(char *newstr, char *fence) level = 0xF; /* max verbosity */ p = newstr; + e = newstr + strlen(p); for (; p < fence && (c = *p);) { @@ -1841,7 +1842,7 @@ pmc_release_pmc_descriptor(struct pmc *pm) /* * First, we take the PMC off hardware. */ - + cpu = 0; if (PMC_IS_SYSTEM_MODE(pm->pm_mode)) { /* @@ -2978,6 +2979,7 @@ pmc_syscall_handler(struct thread *td, void *syscall_args) if ((error = copyin(arg, &prw, sizeof(prw))) != 0) break; + ri = 0; PMCDBG(PMC,OPS,1, "rw id=%d flags=0x%x", prw.pm_pmcid, prw.pm_flags); |