summaryrefslogtreecommitdiff
path: root/usr/src/uts/sun4v/io/n2piupc
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/sun4v/io/n2piupc')
-rw-r--r--usr/src/uts/sun4v/io/n2piupc/n2piupc.h6
-rw-r--r--usr/src/uts/sun4v/io/n2piupc/n2piupc_kstats.c6
2 files changed, 4 insertions, 8 deletions
diff --git a/usr/src/uts/sun4v/io/n2piupc/n2piupc.h b/usr/src/uts/sun4v/io/n2piupc/n2piupc.h
index b9c224618f..689d0c5ef5 100644
--- a/usr/src/uts/sun4v/io/n2piupc/n2piupc.h
+++ b/usr/src/uts/sun4v/io/n2piupc/n2piupc.h
@@ -31,8 +31,6 @@
* Definitions which deal with things other than registers.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#ifdef __cplusplus
extern "C" {
#endif
@@ -65,8 +63,8 @@ extern int n2piupc_debug;
#define N2PIUPC_DBG1 if (n2piupc_debug >= 1) printf
#define N2PIUPC_DBG2 if (n2piupc_debug >= 2) printf
#else
-#define N2PIUPC_DBG1 0 &&
-#define N2PIUPC_DBG2 0 &&
+#define N2PIUPC_DBG1(...)
+#define N2PIUPC_DBG2(...)
#endif /* DEBUG */
diff --git a/usr/src/uts/sun4v/io/n2piupc/n2piupc_kstats.c b/usr/src/uts/sun4v/io/n2piupc/n2piupc_kstats.c
index 0b22142ea2..6881d58a20 100644
--- a/usr/src/uts/sun4v/io/n2piupc/n2piupc_kstats.c
+++ b/usr/src/uts/sun4v/io/n2piupc/n2piupc_kstats.c
@@ -24,8 +24,6 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/types.h>
#include <sys/kstat.h>
#include "n2piupc_acc.h"
@@ -68,7 +66,7 @@ n2piupc_kstat_init()
/* Create basic pic event-type pair. */
grp_p->name_kstats_pp = kmem_zalloc((grp_p->num_counters *
- sizeof (kstat_t)), KM_SLEEP);
+ sizeof (kstat_t)), KM_SLEEP);
if (n2piupc_create_name_kstat(grp_p) != DDI_SUCCESS) {
n2piupc_kstat_fini();
N2PIUPC_DBG1("n2piupc: init: failure exit\n");
@@ -183,7 +181,7 @@ n2piupc_create_picN_kstat(char *mod_name, int pic, uint64_t ev_offset,
(void) snprintf(pic_name, PIC_STR_LEN, "pic%1d", pic);
if ((picN_ksp = kstat_create(mod_name, 0, pic_name,
- "bus", KSTAT_TYPE_NAMED, num_ev, NULL)) == NULL) {
+ "bus", KSTAT_TYPE_NAMED, num_ev, 0)) == NULL) {
cmn_err(CE_WARN, "%s %s : kstat create failed",
mod_name, pic_name);
return (NULL);