Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324482
b: refs/heads/master
c: 8cb05f4
h: refs/heads/master
v: v3
  • Loading branch information
Andy Shevchenko authored and Greg Kroah-Hartman committed Aug 14, 2012
1 parent e402612 commit 1458cc1
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 43 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0edc6c6d545f2615d9239d5ea350d7ed833ee539
refs/heads/master: 8cb05f4b54535cb91d7a5f9f8eb230bd4fa86e4e
21 changes: 0 additions & 21 deletions trunk/drivers/staging/tidspbridge/gen/uuidutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,6 @@
/* ----------------------------------- This */
#include <dspbridge/uuidutil.h>

/*
* ======== uuid_uuid_to_string ========
* Purpose:
* Converts a struct dsp_uuid to a string.
* Note: snprintf format specifier is:
* %[flags] [width] [.precision] [{h | l | I64 | L}]type
*/
void uuid_uuid_to_string(struct dsp_uuid *uuid_obj, char *sz_uuid,
s32 size)
{
s32 i; /* return result from snprintf. */

i = snprintf(sz_uuid, size,
"%.8X_%.4X_%.4X_%.2X%.2X_%.2X%.2X%.2X%.2X%.2X%.2X",
uuid_obj->data1, uuid_obj->data2, uuid_obj->data3,
uuid_obj->data4, uuid_obj->data5,
uuid_obj->data6[0], uuid_obj->data6[1],
uuid_obj->data6[2], uuid_obj->data6[3],
uuid_obj->data6[4], uuid_obj->data6[5]);
}

static s32 uuid_hex_to_bin(char *buf, s32 len)
{
s32 i;
Expand Down
20 changes: 0 additions & 20 deletions trunk/drivers/staging/tidspbridge/include/dspbridge/uuidutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,6 @@

#define MAXUUIDLEN 37

/*
* ======== uuid_uuid_to_string ========
* Purpose:
* Converts a dsp_uuid to an ANSI string.
* Parameters:
* uuid_obj: Pointer to a dsp_uuid object.
* sz_uuid: Pointer to a buffer to receive a NULL-terminated UUID
* string.
* size: Maximum size of the sz_uuid string.
* Returns:
* Requires:
* uuid_obj & sz_uuid are non-NULL values.
* Ensures:
* Lenghth of sz_uuid is less than MAXUUIDLEN.
* Details:
* UUID string limit currently set at MAXUUIDLEN.
*/
void uuid_uuid_to_string(struct dsp_uuid *uuid_obj, char *sz_uuid,
s32 size);

/*
* ======== uuid_uuid_from_string ========
* Purpose:
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/tidspbridge/rmgr/dbdcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ int dcd_get_object_def(struct dcd_manager *hdcd_mgr,
}

/* Create UUID value to set in registry. */
uuid_uuid_to_string(obj_uuid, sz_uuid, MAXUUIDLEN);
snprintf(sz_uuid, MAXUUIDLEN, "%pU", obj_uuid);

if ((strlen(sz_reg_key) + MAXUUIDLEN) < DCD_MAXPATHLENGTH)
strncat(sz_reg_key, sz_uuid, MAXUUIDLEN);
Expand Down

0 comments on commit 1458cc1

Please sign in to comment.