Skip to content

Commit 06e2cd2

Browse files
committed
Cleanup include references. Update print statments.
1 parent 5091914 commit 06e2cd2

File tree

7 files changed

+16
-79
lines changed

7 files changed

+16
-79
lines changed

pvvx/linkpvvx.bat

-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ if exist pvvxbn\xenbus.c del pvvxbn\xenbus.c
6060
mklink pvvxbn\xenbus.c %root_dir%\xen\xenbus\xenbus.c
6161
if exist pvvxbn\xenbus_client.c del pvvxbn\xenbus_client.c
6262
mklink pvvxbn\xenbus_client.c %root_dir%\xen\xenbus\xenbus_client.c
63-
if exist pvvxbn\xenbus_comms.c del pvvxbn\xenbus_comms.c
64-
mklink pvvxbn\xenbus_comms.c %root_dir%\xen\xenbus\xenbus_comms.c
6563
if exist pvvxbn\xenbus_probe.c del pvvxbn\xenbus_probe.c
6664
mklink pvvxbn\xenbus_probe.c %root_dir%\xen\xenbus\xenbus_probe.c
6765
if exist pvvxbn\xenbus_xs.c del pvvxbn\xenbus_xs.c

pvvx/pvvxblk/virtio_blkx.h

-32
This file was deleted.

virtio/virtio_balloon/virtio_balloon.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
#include <virtio_pci_wdm.h>
4545
#include <virtio_utils.h>
4646
#include <virtio_config.h>
47-
#include "virtio_blnx.h"
47+
#include <virtio_blnx.h>
4848
#include "virtio_balloon_pub.h"
4949

5050
#define VIRTIO_BLN_POOL_TAG (ULONG) 'nlbV'

virtio/virtio_balloon/virtio_blndrv.c

+14-11
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ virtio_bln_dispatch_pnp(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
213213
NTSTATUS status;
214214

215215
fdx = (vbln_dev_extn_t *)DeviceObject->DeviceExtension;
216-
RPRINTK(DPRTL_PNP, ("virtio_bln_dispatch_pnp irql %d, fdo %d\n",
217-
KeGetCurrentIrql(), fdx->IsFdo));
216+
RPRINTK(DPRTL_PNP, ("%s irql %d, fdo %d\n",
217+
__func__, KeGetCurrentIrql(), fdx->IsFdo));
218218

219219
if (fdx->pnpstate == Deleted) {
220220
Irp->IoStatus.Status = STATUS_NO_SUCH_DEVICE;
@@ -225,7 +225,7 @@ virtio_bln_dispatch_pnp(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
225225
stack = IoGetCurrentIrpStackLocation(Irp);
226226
switch (stack->MinorFunction) {
227227
case IRP_MN_START_DEVICE:
228-
RPRINTK(DPRTL_PNP, ("virtio_bln_pnp: IRP_MN_START_DEVICE.\n"));
228+
RPRINTK(DPRTL_PNP, ("%s: IRP_MN_START_DEVICE.\n", __func__));
229229

230230
status = send_irp_synchronous(fdx->LowerDevice, Irp);
231231
if (NT_SUCCESS(status)) {
@@ -244,6 +244,9 @@ virtio_bln_dispatch_pnp(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
244244
vwork_item->work_item = NULL;
245245
virtio_bln_worker(DeviceObject, vwork_item);
246246
}
247+
} else {
248+
PRINTK(("%s: failed wdm_start_device %x\n",
249+
__func__, status));
247250
}
248251
} else {
249252
RPRINTK(DPRTL_ON, (" Starting after a %d\n", fdx->pnpstate));
@@ -256,52 +259,52 @@ virtio_bln_dispatch_pnp(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
256259
return status;
257260

258261
case IRP_MN_QUERY_STOP_DEVICE:
259-
RPRINTK(DPRTL_PNP, ("virtio_bln_pnp:IRP_MN_QUERY_STOP_DEVICE.\n"));
262+
RPRINTK(DPRTL_PNP, ("%s:IRP_MN_QUERY_STOP_DEVICE.\n", __func__));
260263
fdx->pnpstate = StopPending;
261264
Irp->IoStatus.Status = STATUS_SUCCESS;
262265
break;
263266

264267
case IRP_MN_CANCEL_STOP_DEVICE:
265268
RPRINTK(DPRTL_PNP,
266-
("virtio_bln_pnp: IRP_MN_CANCEL_STOP_DEVICE.\n"));
269+
("%s: IRP_MN_CANCEL_STOP_DEVICE.\n", __func__));
267270
if (fdx->pnpstate == StopPending) {
268271
fdx->pnpstate = Started;
269272
}
270273
Irp->IoStatus.Status = STATUS_SUCCESS;
271274
break;
272275

273276
case IRP_MN_STOP_DEVICE:
274-
RPRINTK(DPRTL_PNP, ("virtio_bln_pnp: IRP_MN_STOP_DEVICE.\n"));
277+
RPRINTK(DPRTL_PNP, ("%s: IRP_MN_STOP_DEVICE.\n", __func__));
275278
/* TODO: Irps and resources */
276279

277280
fdx->pnpstate = Stopped;
278281
Irp->IoStatus.Status = STATUS_SUCCESS;
279282
break;
280283

281284
case IRP_MN_QUERY_REMOVE_DEVICE:
282-
RPRINTK(DPRTL_PNP, ("virtio_bln_pnp: IRP_MN_QUERY_REMOVE_DEVICE\n"));
285+
RPRINTK(DPRTL_PNP, ("%s: IRP_MN_QUERY_REMOVE_DEVICE\n", __func__));
283286
fdx->pnpstate = RemovePending;
284287
Irp->IoStatus.Status = STATUS_SUCCESS;
285288
break;
286289

287290
case IRP_MN_CANCEL_REMOVE_DEVICE:
288291
RPRINTK(DPRTL_PNP,
289-
("virtio_bln_pnp: IRP_MN_CANCEL_REMOVE_DEVICE\n"));
292+
("%s: IRP_MN_CANCEL_REMOVE_DEVICE\n", __func__));
290293
if (fdx->pnpstate == RemovePending) {
291294
fdx->pnpstate = Started;
292295
}
293296
Irp->IoStatus.Status = STATUS_SUCCESS;
294297
break;
295298

296299
case IRP_MN_SURPRISE_REMOVAL:
297-
RPRINTK(DPRTL_PNP, ("virtio_bln_pnp: IRP_MN_SURPRISE_REMOVAL.\n"));
300+
RPRINTK(DPRTL_PNP, ("%s: IRP_MN_SURPRISE_REMOVAL.\n", __func__));
298301
fdx->pnpstate = SurpriseRemovePending;
299302
virtio_bln_remove_device(DeviceObject);
300303
Irp->IoStatus.Status = STATUS_SUCCESS;
301304
break;
302305

303306
case IRP_MN_REMOVE_DEVICE:
304-
RPRINTK(DPRTL_PNP, ("virtio_bln_pnp: IRP_MN_REMOVE_DEVICE.\n"));
307+
RPRINTK(DPRTL_PNP, ("%s: IRP_MN_REMOVE_DEVICE.\n", __func__));
305308

306309
if (fdx->pnpstate != SurpriseRemovePending) {
307310
virtio_bln_remove_device(DeviceObject);
@@ -319,7 +322,7 @@ virtio_bln_dispatch_pnp(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
319322

320323
default:
321324
RPRINTK(DPRTL_PNP,
322-
("virtio_bln_pnp: default irp %x.\n", stack->MinorFunction));
325+
("%s: default irp %x.\n", stack->MinorFunction, __func__));
323326
break;
324327
}
325328

virtio/virtio_blk/virtio_blk.h

-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
#include <virtio_pci.h>
4949
#include <storport_reg.h>
5050
#include <sp_defs.h>
51-
#include "virtio_blkx.h"
5251

5352
#define VBIF_DESIGNATOR_STR "Virtio Block Device"
5453
#define VIRTIO_SP_DRIVER_NAME "VBLK"

virtio/virtio_blk/virtio_blkentry.c

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
*/
2626

2727
#include "virtio_blk.h"
28+
#include "virtio_blk_ver.h"
2829

2930
#if (NTDDI_VERSION > NTDDI_WIN7)
3031
sp_DRIVER_INITIALIZE DriverEntry;

virtio/virtio_blk/virtio_blkx.h

-32
This file was deleted.

0 commit comments

Comments
 (0)