本文整理汇总了C++中SPEW函数的典型用法代码示例。如果您正苦于以下问题:C++ SPEW函数的具体用法?C++ SPEW怎么用?C++ SPEW使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了SPEW函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SPEW
bool
Matrix4D::TestClass()
{
SPEW((GROUP_STUFF_TEST, "Starting Matrix4D test...\n"));
SPEW((GROUP_STUFF_TEST, " Matrix4D::TestClass() is stubbed out!"));
return false;
}
示例2: SPEW
bool
Normal3D::TestClass()
{
SPEW((GROUP_STUFF_TEST, "Starting Normal3D Test...\n"));
SPEW((GROUP_STUFF_TEST, " Normal3D::TestClass() is stubbed out!\n"));
return false;
}
示例3: tps6105x_attr_store_avin
static ssize_t
tps6105x_attr_store_avin(struct device *dev, struct device_attribute *attr,
const char *buf, size_t count)
{
int rc;
int avin;
struct i2c_client *i2c = to_i2c_client(dev);
struct tps6105x_client_data *data = i2c_get_clientdata(i2c);
SPEW(1, "+++ %s: buf=%s\n", __func__, buf);
if (!sscanf(buf, "%d", &avin)) {
rc = -EINVAL;
goto exit;
}
if ((rc = tps6105x_enable_avin(data, !!avin)))
goto exit;
rc = count;
exit:
SPEW(1, "--- %s: rc=%d\n", __func__, rc);
return (rc);
}
示例4: tps6105x_attribute_show
static ssize_t
tps6105x_attribute_show(struct device *dev, struct device_attribute *_attr,
char *buf)
{
u8 val;
int i;
ssize_t rc;
struct i2c_client *i2c = to_i2c_client(dev);
struct tps6105x_attribute *attr = (struct tps6105x_attribute *)_attr;
SPEW(1, "--> %s: attr=%s\n", __func__, _attr->attr.name);
if ((rc = tps6105x_i2c_read_u8(i2c, attr->index, &val)))
goto exit;
for (i = 0, rc = 0; i < attr->count; ++i) {
rc += snprintf(buf + rc, PAGE_SIZE - rc, "%s%s",
attr->values[i].desc,
attr->values[i].val == (attr->mask & val)
? "* " : " ");
}
rc += snprintf(buf + rc, PAGE_SIZE - rc, "\n");
exit:
SPEW(1, "<-- %s: rc=%d\n", __func__, rc);
return (rc);
}
示例5: SPEW
nsresult
compzillaWindow::GetUTF8StringProperty (Atom prop, nsACString& utf8Value)
{
SPEW ("GetUTF8StringProperty this=%p, prop=%s\n", this, XGetAtomName (mDisplay, prop));
Atom actual_type;
int format;
unsigned long nitems;
unsigned long bytes_after_return;
unsigned char *data;
if (XGetWindowProperty (mDisplay,
mWindow,
prop,
0,
BUFSIZ,
false,
AnyPropertyType,
&actual_type,
&format,
&nitems,
&bytes_after_return,
&data) != Success ||
format == None) {
SPEW (" + (Not Found)\n");
return NS_ERROR_FAILURE;
}
if (actual_type == atoms.x.UTF8_STRING) {
utf8Value = (char*)data;
}
else if (actual_type == XA_STRING) {
char **list = NULL;
int count;
count = gdk_text_property_to_utf8_list (gdk_x11_xatom_to_atom (actual_type),
format, data, nitems,
&list);
if (count == 0) {
XFree (data);
return NS_ERROR_FAILURE;
}
utf8Value = list[0];
g_strfreev (list);
}
else {
WARNING ("invalid type for string property '%s': '%s'\n",
XGetAtomName (mDisplay, prop),
XGetAtomName (mDisplay, actual_type));
XFree (data);
return NS_ERROR_FAILURE;
}
XFree (data);
return NS_OK;
}
示例6: SPEW
bool
Ray3D::TestClass()
{
SPEW((GROUP_STUFF_TEST, "Starting Ray3D test..."));
SPEW((GROUP_STUFF_TEST, " Ray3D::TestClass is stubbed out!"));
return true;
}
示例7: alloc_page_from_arena
static PageInfo*
alloc_page_from_arena(Arena *arena, size_t cell_size)
{
void *page_data = (void*)ALIGN(arena->pos, PAGE_SIZE);
if (arena->free_pages) {
PageInfo* info = arena->free_pages;
EJS_LIST_DETACH(info, arena->free_pages);
info->cell_size = cell_size;
info->num_cells = CELLS_OF_SIZE(cell_size);
info->num_free_cells = info->num_cells;
info->bump_ptr = info->page_start;
memset (info->page_bitmap, CELL_FREE, info->num_cells * sizeof(BitmapCell));
SPEW(3, _ejs_log ("alloc_page_from_arena from free pages for cell size %zd = %p\n", info->cell_size, info));
return info;
}
else if (page_data < arena->end) {
PageInfo* info = alloc_page_info_from_arena (arena, page_data, cell_size);
int page_idx = arena->num_pages++;
arena->pos = page_data + PAGE_SIZE;
arena->pages[page_idx] = page_data;
arena->page_infos[page_idx] = info;
SPEW(3, _ejs_log ("alloc_page_from_arena from bump pointer for cell size %zd = %p\n", info->cell_size, info));
return info;
}
else {
return NULL;
}
}
示例8: ThreadedNode
DtkShmMove::DtkShmMove() :
ThreadedNode()
{
SPEW();
// Add external route
addExternalRoute("*", "{NamespaceLabel}/{SlotLabel}");
SPEW();
}
示例9: Check_Object
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
void
BitTrace::PrintUsage(Scalar usage)
{
Check_Object(this);
SPEW((GROUP_STUFF_TRACE, "%4f%% CPU+", (usage*100.0f)));
#if defined(USE_ACTIVE_PROFILE)
SPEW((GROUP_STUFF_TRACE, " (active on line %d)", static_cast<int>(activeLine)));
#endif
}
示例10: Spew
void
Spew(
const char* group,
const YawPitchRange &angle
)
{
SPEW((group, "<+"));
Spew(group, angle.yaw);
SPEW((group, ",+"));
Spew(group, angle.pitch);
SPEW((group, "; %f+", angle.range));
}
示例11: NS_ASSERT_OWNINGTHREAD
compzillaWindow::~compzillaWindow()
{
NS_ASSERT_OWNINGTHREAD(compzillaWindow);
SPEW ("~compzillaWindow %p, xid=%p\n", this, mWindow);
Destroyed ();
// FIXME: Do we need this?
//UnredirectWindow ();
SPEW ("~compzillaWindow DONE\n");
}
示例12: tps6105x_i2c_suspend
static int
tps6105x_i2c_suspend(struct i2c_client *i2c, pm_message_t mesg)
{
struct tps6105x_client_data *data = i2c_get_clientdata(i2c);
SPEW(1, "--> %s: event=%d\n", __func__, mesg.event);
if (PM_EVENT_SUSPEND == mesg.event)
(void)tps6105x_enable_avin(data, 0);
SPEW(1, "<-- %s\n", __func__);
return (0);
}
示例13: Spew
void
Spew(
const char* group,
const EulerAngles &angle
)
{
Check_Object(&angle);
SPEW((group, "<+"));
Spew(group, angle.pitch);
SPEW((group, ",+"));
Spew(group, angle.yaw);
SPEW((group, ",+"));
Spew(group, angle.roll);
SPEW((group, ">+"));
}
示例14: SPEW
//
//#############################################################################
//#############################################################################
//
bool
Degree::TestClass()
{
SPEW((GROUP_STUFF_TEST, "Starting Degree test..."));
const Degree a(Degrees_Per_Radian);
Degree
b,c;
Radian
r(1.0f),s;
s = a;
Test_Assumption(r == s);
b = r;
s = b;
#if 0
Test_Assumption(r == s);
#endif
c = Degrees_Per_Radian;
s = c;
#if 0
Test_Assumption(r == s);
#endif
b = c;
s = b;
#if 0
Test_Assumption(r == s);
#endif
return true;
}
示例15: rpmcdsaVerify
static int rpmcdsaVerify(pgpDig dig)
{
int rc = 0; /* assume failure */
pgpDigParams pubp = pgpGetPubkey(dig);
pgpDigParams sigp = pgpGetSignature(dig);
dig->pubkey_algoN = rpmcdsaPubkeyAlgo2Name(pubp->pubkey_algo);
dig->hash_algoN = rpmcdsaHashAlgo2Name(sigp->hash_algo);
switch (pubp->pubkey_algo) {
default:
break;
case PGPPUBKEYALGO_RSA:
rc = rpmcdsaVerifyRSA(dig);
break;
case PGPPUBKEYALGO_DSA:
rc = rpmcdsaVerifyDSA(dig);
break;
case PGPPUBKEYALGO_ELGAMAL:
#ifdef NOTYET
rc = rpmcdsaVerifyELG(dig);
#endif
break;
case PGPPUBKEYALGO_ECDSA:
rc = rpmcdsaVerifyECDSA(dig);
break;
}
SPEW(!rc, rc, dig);
return rc;
}