Module Name: src Committed By: jmcneill Date: Mon Mar 25 22:40:12 UTC 2013
Modified Files: src/sys/external/bsd/vchiq/dist/interface/vchiq_arm: vchiq_arm.c Log Message: hide some debug printfs under VCHIQ_IOCTL_DEBUG To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 \ src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_arm.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_arm.c diff -u src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_arm.c:1.1 src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_arm.c:1.2 --- src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_arm.c:1.1 Fri Mar 8 12:32:30 2013 +++ src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_arm.c Mon Mar 25 22:40:12 2013 @@ -520,7 +520,9 @@ vchiq_ioctl(struct file *fp, u_long cmd, } } +#ifdef VCHIQ_IOCTL_DEBUG printf("%s: [CREATE SERVICE] handle = %08x\n", __func__, service->handle); +#endif pargs->handle = service->handle; service = NULL; @@ -533,7 +535,9 @@ vchiq_ioctl(struct file *fp, u_long cmd, case VCHIQ_IOC_CLOSE_SERVICE: { VCHIQ_SERVICE_HANDLE_T handle = *(VCHIQ_SERVICE_HANDLE_T *)arg; +#ifdef VCHIQ_IOCTL_DEBUG printf("%s: [CLOSE SERVICE] handle = %08x\n", __func__, handle); +#endif service = find_service_for_instance(instance, handle); if (service != NULL) @@ -545,7 +549,9 @@ vchiq_ioctl(struct file *fp, u_long cmd, case VCHIQ_IOC_REMOVE_SERVICE: { VCHIQ_SERVICE_HANDLE_T handle = *(VCHIQ_SERVICE_HANDLE_T *)arg; +#ifdef VCHIQ_IOCTL_DEBUG printf("%s: [REMOVE SERVICE] handle = %08x\n", __func__, handle); +#endif service = find_service_for_instance(instance, handle); if (service != NULL) @@ -558,8 +564,10 @@ vchiq_ioctl(struct file *fp, u_long cmd, case VCHIQ_IOC_RELEASE_SERVICE: { VCHIQ_SERVICE_HANDLE_T handle = *(VCHIQ_SERVICE_HANDLE_T *)arg; +#ifdef VCHIQ_IOCTL_DEBUG printf("%s: [%s SERVICE] handle = %08x\n", __func__, cmd == VCHIQ_IOC_USE_SERVICE ? "USE" : "RELEASE", handle); +#endif service = find_service_for_instance(instance, handle); if (service != NULL) { @@ -587,7 +595,9 @@ vchiq_ioctl(struct file *fp, u_long cmd, case VCHIQ_IOC_QUEUE_MESSAGE: { VCHIQ_QUEUE_MESSAGE_T *pargs = arg; +#ifdef VCHIQ_IOCTL_DEBUG printf("%s: [QUEUE MESSAGE] handle = %08x\n", __func__, pargs->handle); +#endif service = find_service_for_instance(instance, pargs->handle);