netback.c (453130d9bfc1c6d68b366dfcb041689d69f81295) netback.c (407d708cc7eadc3a742a2cf5493a583799aea311)
1/*-
2 * Copyright (c) 2009-2011 Spectra Logic Corporation
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 1087 unchanged lines hidden (view full) ---

1096 va_list ap;
1097 va_list ap_hotplug;
1098
1099 va_start(ap, fmt);
1100 va_copy(ap_hotplug, ap);
1101 xs_vprintf(XST_NIL, xenbus_get_node(xnb->dev),
1102 "hotplug-error", fmt, ap_hotplug);
1103 va_end(ap_hotplug);
1/*-
2 * Copyright (c) 2009-2011 Spectra Logic Corporation
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 1087 unchanged lines hidden (view full) ---

1096 va_list ap;
1097 va_list ap_hotplug;
1098
1099 va_start(ap, fmt);
1100 va_copy(ap_hotplug, ap);
1101 xs_vprintf(XST_NIL, xenbus_get_node(xnb->dev),
1102 "hotplug-error", fmt, ap_hotplug);
1103 va_end(ap_hotplug);
1104 xs_printf(XST_NIL, xenbus_get_node(xnb->dev),
1104 (void)xs_printf(XST_NIL, xenbus_get_node(xnb->dev),
1105 "hotplug-status", "error");
1106
1107 xenbus_dev_vfatal(xnb->dev, err, fmt, ap);
1108 va_end(ap);
1109
1105 "hotplug-status", "error");
1106
1107 xenbus_dev_vfatal(xnb->dev, err, fmt, ap);
1108 va_end(ap);
1109
1110 xs_printf(XST_NIL, xenbus_get_node(xnb->dev),
1111 "online", "0");
1110 (void)xs_printf(XST_NIL, xenbus_get_node(xnb->dev), "online", "0");
1112 xnb_detach(xnb->dev);
1113}
1114
1115/*---------------------------- NewBus Entrypoints ----------------------------*/
1116/**
1117 * Inspect a XenBus device and claim it if is of the appropriate type.
1118 *
1119 * \param dev NewBus device object representing a candidate XenBus device.

--- 1401 unchanged lines hidden ---
1111 xnb_detach(xnb->dev);
1112}
1113
1114/*---------------------------- NewBus Entrypoints ----------------------------*/
1115/**
1116 * Inspect a XenBus device and claim it if is of the appropriate type.
1117 *
1118 * \param dev NewBus device object representing a candidate XenBus device.

--- 1401 unchanged lines hidden ---