Changeset 63409 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Aug 13, 2016 1:53:02 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-netbsd.c
r63408 r63409 257 257 */ 258 258 if (IOCPARM_LEN(command) != sizeof(VBGLBIGREQ)) { 259 Log((DEVICE_NAME ": VBoxGuestFreeBSDIOCtl: bad request %lu size=%lu expected=%d\n", command, IOCPARM_LEN(command), sizeof(VBGLBIGREQ))); 259 Log((DEVICE_NAME ": %s: bad request %lu size=%lu expected=%d\n", 260 __func__, command, IOCPARM_LEN(command), sizeof(VBGLBIGREQ))); 260 261 return ENOTTY; 261 262 } … … 264 265 if (ReqWrap->u32Magic != VBGLBIGREQ_MAGIC) 265 266 { 266 Log((DEVICE_NAME ": VBoxGuestNetBSDIOCtl: bad magic %#x; pArg=%p Cmd=%lu.\n", ReqWrap->u32Magic, data, command)); 267 Log((DEVICE_NAME ": %s: bad magic %#x; pArg=%p Cmd=%lu.\n", 268 __func__, ReqWrap->u32Magic, data, command)); 267 269 return EINVAL; 268 270 } … … 280 282 if (RT_UNLIKELY(!pvBuf)) 281 283 { 282 Log((DEVICE_NAME ":VBoxGuestNetBSDIOCtl: RTMemTmpAlloc failed to alloc %d bytes.\n", ReqWrap->cbData)); 284 Log((DEVICE_NAME ": %s: RTMemTmpAlloc failed to alloc %d bytes.\n", 285 __func__, ReqWrap->cbData)); 283 286 return ENOMEM; 284 287 } … … 288 291 { 289 292 RTMemTmpFree(pvBuf); 290 Log((DEVICE_NAME ":VBoxGuestNetBSDIOCtl: copyin failed; pvBuf=%p pArg=%p Cmd=%lu. rc=%d\n", pvBuf, data, command, rc)); 293 Log((DEVICE_NAME ": %s: copyin failed; pvBuf=%p pArg=%p Cmd=%lu. rc=%d\n", 294 __func__, pvBuf, data, command, rc)); 291 295 aprint_error_dev(vboxguest->sc_dev, "copyin failed\n"); 292 296 return EFAULT; … … 296 300 { 297 301 RTMemTmpFree(pvBuf); 298 Log((DEVICE_NAME ":VBoxGuestNetBSDIOCtl: pvBuf invalid pointer %p\n", pvBuf)); 302 Log((DEVICE_NAME ": %s: pvBuf invalid pointer %p\n", 303 __func__, pvBuf)); 299 304 return EINVAL; 300 305 } … … 309 314 if (RT_UNLIKELY(cbDataReturned > ReqWrap->cbData)) 310 315 { 311 Log((DEVICE_NAME ":VBoxGuestNetBSDIOCtl: too much output data %d expected %d\n", cbDataReturned, ReqWrap->cbData)); 316 Log((DEVICE_NAME ": %s: too much output data %d expected %d\n", 317 cbDataReturned, ReqWrap->cbData)); 312 318 cbDataReturned = ReqWrap->cbData; 313 319 } … … 317 323 if (RT_UNLIKELY(rc)) 318 324 { 319 Log((DEVICE_NAME ":VBoxGuestNetBSDIOCtl: copyout failed; pvBuf=%p pArg=%p. rc=%d\n", pvBuf, data, rc)); 325 Log((DEVICE_NAME ": %s: copyout failed; pvBuf=%p pArg=%p. rc=%d\n", 326 __func__, pvBuf, data, rc)); 320 327 } 321 328 } 322 329 } else { 323 Log((DEVICE_NAME ":VBoxGuestNetBSDIOCtl: VGDrvCommonIoCtl failed. rc=%d\n", rc)); 330 Log((DEVICE_NAME ": %s: VGDrvCommonIoCtl failed. rc=%d\n", 331 __func__, rc)); 324 332 rc = -rc; 325 333 }
Note:
See TracChangeset
for help on using the changeset viewer.